join

Tony Garnock-Jones tonyg at lshift.net
Tue Sep 19 15:37:00 UTC 2006


Ramon Leon wrote:
> Split and Join are partners, join makes a list into a
> string and split does the opposite, join belongs to lists, split belongs to
> String.

You could see it as primarily oriented on the collection being split or
joined, or on the separator interleaving the collection. Python's join
is separator-as-receiver. Python isn't symmetric though: it expects the
string /to be split/ as the receiver of the split() message.

Tony




More information about the Squeak-dev mailing list