I have attempted to merge the functionality of Keith's Join package  
and Damien's and my RubyShards.

The protocol is basically Keith's.

Send splitOn: to a collection to split it, or send split: to the  
splitter with the collection as argument.

The reverse messages are joinUsing: and join:.

Everything has been generalized to work not only with Arrays and  
Strings but also OrderedCollections and SortedCollections.  Not only  
sequences and blocks can be used as splitters, but also objects and  
regexes.

Documentation is in SplitJoinTest on the class side, or see the class  
comment.

See http://www.squeaksource.com/SplitJoin.html

The latest version has been pushed into the PharoInbox.

- on


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to