New features

Brian Rice water at tunes.org
Wed Apr 13 21:45:17 PDT 2005


On Apr 13, 2005, at 6:52 PM, Brian Rice wrote:
> On Apr 13, 2005, at 12:32 PM, Brian Rice wrote:
>> Sequence methods: concatenateAll:, concatenateAll:separatedBy: to 
>> join sequences together, or with a separator sequence. chainPairsDo: 
>> is like pairsDo: but the block is applied to each element twice, once 
>> as next argument, then as the first (except for the first and last 
>> elements, of course).
>
> On further thought, concatenateAll: and such probably deserve a more 
> succinct selector. The equivalent of this is "join" in 
> perl/python(/ruby? I forget), although Common Lisp / Dylan just call 
> it "concatenate".
>
> Perhaps ;* would make sense since current binary concatenation is ; 
> (or ;; if you're lazy ;). I'd prefer not to use join: as it'd be 
> confusing and probably overloaded in different ways. Either way, the 
> separator should probably be an optional keyword, which would not be 
> difficult to do. Does that sound right, or too confusing? Ideas?

Until someone screams loudly, I've added a ;* alias for the methods and 
moved them into one concatenateAll: method with &separator: optional. 
;* also takes that optional.

--
Brian T. Rice
LOGOS Research and Development
http://tunes.org/~water/




More information about the Slate mailing list