<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
I think that "first" in the name would not work for an arbitrary collection, which might not have any order at all. "copy" sounds too low-level.<div><br></div><div>I do like #slice:. The name #take: is inspired from libraries for other languages and database frameworks. Yet, #slice: might also be better for randomized sampling (if desired) than #take:.</div><div><br></div><div>Then, we have #anyOne. So, what about #some:? ... or #anySome:? :-D</div><div><br></div><div>Best,<br>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">Am 10.05.2019 09:22:12 schrieb K K Subbu <kksubbu.ml@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">On 10/05/19 11:34 AM, Marcel Taeumel wrote:
<br>> Hmmm...
<br>>
<br>> (Set withAll: (1 to: 11)) take: 4 "-> e.g. #(1 2 3 4)"
<br>> (Set withAll: (1 to: 11)) size take: 4 "-> 330"
<br>
<br>May I suggest using #slice: or #copyFirst: for collections?
<br>
<br> slice: 10
<br> copyFirst: 10
<br>
<br>
<br>Regards .. Subbu
<br></div></blockquote>
</div></body>