[squeak-dev] The Inbox: Collections-mt.832.mcz

K K Subbu kksubbu.ml at gmail.com
Fri May 10 07:22:05 UTC 2019


On 10/05/19 11:34 AM, Marcel Taeumel wrote:
> Hmmm...
> 
> (Set withAll: (1 to: 11)) take: 4 "-> e.g. #(1 2 3 4)"
> (Set withAll: (1 to: 11)) size take: 4 "-> 330"

May I suggest using #slice: or #copyFirst: for collections?

   slice: 10
   copyFirst: 10


Regards .. Subbu


More information about the Squeak-dev mailing list