Feb. 20, 2013
7:05 a.m.
No, Squeak has (since 2005) had still another behaviour:
';;;;' subStrings: ';' '1;2;3' subStrings: ';' #('1' '2' '3')
(Note the ';' rather than $;, because Squeak's version takes a String of separators.)
so yes, exactly the same as in Pharo. => we inherited it from Squeak! => subStrings: only works with Characters => #splitOn: does it with both and yields more predictable results! (';;;;' splitOn: $;) = (';;;;' splitOn: ';') = an OrderedCollection('' '' '' '' '')