results of SPLIT when keys not unique

Monte Goulding monte at appisle.net
Thu Nov 2 18:46:39 EDT 2017


> On 3 Nov 2017, at 9:39 am, Monte Goulding <monte at appisle.net> wrote:
> 
> It would probably be nice to have some explicit syntax to govern this behavior so that you could explicitly declare you want clobbering behavior or first come best dressed.

Oh… one might also feasibly want output like this I guess:

var[“dog”][1] -> 3
var[“dog”][2] -> 5
var[“cat”]-> 8

Perhaps something like:

split <value> by <primaryDelimiter> and <secondaryDelimiter> [{replacing | splitting | ignoring} duplicates]

Cheers

Monte


More information about the use-livecode mailing list