Sept. 19, 2025
7:21 p.m.
Le 19/09/2025 à 20:47, stephane ducasse a écrit :
Hello Rene Paul
compare
| res | res := OrderedCollection new. #($a $b $c) do: [:aChar | res add: aChar]. res
an OrderedCollection($a $b $c)
| res | res := OrderedCollection new. #($a $b $c) do: [:aChar | res add: aChar; add: $,]. res
an OrderedCollection($a $, $b $, $c $,)
and
| res | res := OrderedCollection new. #($a $b $c) do: [:aChar | res add: aChar] separatedBy: [res add: $,]. res
an OrderedCollection($a $, $b $, $c)
These comparisons are very enlightening. Thank you very much Stephane. -- All the best Rene Paul Mages (ramix) GnuPG key : 0x9840A6F7 https://sites.google.com/view/les-logiciels-libres/pharo https://twitter.com/RenePaulMages