On Tuesday, March 5, 2002, at 01:06 , Ben Rubinstein wrote: > snipalot > I'd like the following to > happen > > put "key1,key2,key3" into x > split x by comma > put the keys of x > -- key1 > -- key2 > -- key3 > put x[key2] > -- 2 snipmore > That is, if two delimiters are specified; and the second isn't > found for any item defined by the first, then make the key for that > entry in > the array be the whole of that item (and I guess make the value be the > index?). > > Does this make sense to anyone? > Ben
Sense, yes. Agree, no. You set out the position admirably, so I need hardly argue it. I just don't agree that the default action should be to create keys rather than elements. It feels less useful to me. Ask for both :-) cheers David > Ben Rubinstein | Email: [EMAIL PROTECTED] > Cognitive Applications Ltd | Phone: +44 (0)1273-821600 > http://www.cogapp.com | Fax : +44 (0)1273-728866 > > > _______________________________________________ > improve-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/improve-revolution > _______________________________________________ improve-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/improve-revolution
