Op 2-12-2018 om 11:15 schreef Hilaire:
#(+1 -8) inject: 0 into: [:sum :each | each ~= #+ ifTrue: [sum + each] ifFalse: [sum]] .
Thanks, Now to stretch my mind I will try to make one with double-dispatch. Roelof
Op 2-12-2018 om 11:15 schreef Hilaire:
#(+1 -8) inject: 0 into: [:sum :each | each ~= #+ ifTrue: [sum + each] ifFalse: [sum]] .
Thanks, Now to stretch my mind I will try to make one with double-dispatch. Roelof