Hi Syef, ;-) I am going over the two split-join implementations, merging functionality, generalizing and making the interfaces consistent. About your proposal: splitOn: should always return an OrderedCollection containing elements of the same type as the receiver. 'banana' splitOn: 'an' -> an OrderedCollection('b' '' 'a') It doesn't make sense for this to return a String. When joining, of course the original type should be returned no matter what kind of sequenceable collection was split. I am preparing tests for all the cases. - on On Apr 5, 2009, at 10:33, Stéphane Ducasse wrote:
then I have a question what splitBy: returns? does it return a collection that is the same kind of the receiver? Why do you hard code an OrderedCollection in splitBySubCollection: aSplitter. self species would do it too? Syef