3 ms·
> They may not support FP as well as Haskell or OO as well as Smalltalk… The Smalltalk Collection enumeration protocol was probably the first time I'd seen any
by igouy 4y ago
> They may not support FP as well as Haskell or OO as well as Smalltalk…
The Smalltalk Collection enumeration protocol was probably the first time I'd seen anything like
(1 to: 100) select: [ :n | n isPrime ]
https://cuis-smalltalk.github.io/TheCuisBook/Fun-with-collections.html#index-block https://cuis-smalltalk.github.io/TheCuisBook/Fun-with-collec...
(Now I recall, I had been required to write some Tower of Hanoi snippet in either Lisp or Prolog, and I'd used Prolog.)