[Pharo-users] Set >> collect:thenDo:

Herby Vojčík herby at mailbox.sk
Sat Sep 7 11:21:12 EDT 2019


Hello!

----
   (#(1 2 3) asSet collect: #odd)
     do: [ :each | Transcript show: each; cr ]

   > true
   > false

----

   #(1 2 3) asSet collect: #odd
     thenDo: [ :each | Transcript show: each; cr ]

   > true
   > false
   > true
----


Bug or feature?

Herby



More information about the Pharo-users mailing list