Friday, July 06, 2012

Join Smalltalk

Thats why I like the language: it easy, extendable and expressive:

';' join: #(1 2 3 4) returns '1;2;3;4'

and

 String lf join: #('First line' 'Second line')  returns

 'First line
Second line'

No comments:

Post a Comment