I made a mistake in the following snippet:
> Le 23 août 2019 à 16:14, Julien <julien.delplan...@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