In Pharo:

':' split: 'one:two:three:'   => OrderedCollection( 'one' 'two' 'three' '' )
(':' split: 'one:two:three:') size => 4

Last element is an empty String

In Ruby:

>> 'one:two:three:'.split(':')
=> ["one", "two", "three"]
>> 'one:two:three:'.split(':').size
=> 3

Laurent Laffont
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to