Aug. 23, 2019
2:17 p.m.
I made a mistake in the following snippet:
Le 23 août 2019 à 16:14, Julien <julien.delplanque@inria.fr> a écrit :
iterator := #(1 2 3) iterator. collectionToFill := OrderedCollection new. iterator | [ :x | x * 2 ] collectIt | [ :x :y | x + y ] reduceIt
collectionToFill. collectionToFill "anOrderedCollection(12)"
">>" operator needs to be used here, so the correct code is: iterator := #(1 2 3) iterator. collectionToFill := OrderedCollection new. iterator | [ :x | x * 2 ] collectIt | [ :x :y | x + y ] reduceIt >> collectionToFill. collectionToFill "anOrderedCollection(12)" Julien