<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        So, there are two questions:<div><br></div><div>1) Name it #take: or #any: or #slice:?</div><div>2) Signal an Error (or Notification) if there are not enough elements in the collection or just compensate (less elements or duplicate elements)?</div><div><br></div><div>Best,</div><div>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 11:45:59 schrieb Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 10 mai 2019 à 10:25, Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_7881943902296689918__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0)">
                                        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></div></blockquote><div>Agree, we already have #first: for the Sequenceable kind...</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_7881943902296689918__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0)"><div></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></div></blockquote><div>Yes, that's what I thought when you posted; just #any:</div><div>But #take: is a good name<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_7881943902296689918__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0)"><div></div><div>Best,<br>Marcel</div><div class="gmail-m_7881943902296689918mb_sig"></div><blockquote class="gmail-m_7881943902296689918history_container" type="cite" style="border-left-style:solid;border-width:1px;margin-top:20px;margin-left:0px;padding-left:10px">
                        <p style="color:rgb(170,170,170);margin-top:10px">Am 10.05.2019 09:22:12 schrieb K K Subbu <<a href="mailto:kksubbu.ml@gmail.com" target="_blank">kksubbu.ml@gmail.com</a>>:</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></div><br>
</blockquote></div></div>
</div></blockquote>
                                        </div></body>