<div dir="ltr">I have had the same problems when looking for this message and the problem is I never remember its name! I know it exists but I do not remember its name :-) <div>For some reason I look for split ... </div><div>Maybe we can add split to send findTokens: ? just to help finding it because if it is happening to many of us it means something :-)</div><div><br></div><div>Cheers!</div><div>Hernan.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 1, 2021 at 12:03 AM Todd Blanchard via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<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><div>Pharo has a method splitOn: aString<br></div><div><br></div><div>It is not precisely the same.  The argument is taken to be a substring to be treated as a single delimiter rather than a set of delimiter characters.<br></div><div><br></div><div>So..<br></div><div><br></div><div>'Hello World' findTokens: 'ol'. -> anOrderedCollection('He' ' W' 'r' 'd')<br></div><div>'Hello World' splitOn: 'ol'. -> #('Hello World')<br></div><div>'Hello World' splitOn: 'lo'. -> #('Hel' ' World')<br></div></div><div><div><br></div><div>Its partner is aSequenceableCollection joinUsing: aString<br></div><div>#('Hel' ' World') joinUsing: 'p the'. -> 'Help the World'<br></div><div><br></div><div>I myself use them quite a lot and if you were to add them, it would be nice if they matched what is found in other Smalltalks, although I confess I don't love the names either.</div><div><br></div><blockquote type="cite"><div>On Nov 30, 2021, at 10:26 AM, Juan Vuletich via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</a>> wrote:<br></div><div><br></div><div><div><div>Isn't that essentially the same as #findTokens: ?<br></div><div><br></div><div>'Hello World' findTokens: 'o'.           ->          an <br></div><div>OrderedCollection('Hell' ' W' 'rld').<br></div><div>'Hello World' split: 'o'.            ->          #('Hell' ' W' 'rld').<br></div><div><br></div><div>'Hello World' findTokens: 'ol'.            ->          an <br></div><div>OrderedCollection('He' ' W' 'r' 'd')<br></div><div>'Hello World' split: 'ol'.            ->          #('He' ' W' 'r' 'd')<br></div></div></div></blockquote><div><br></div></div><div><br></div></div>-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="font-size:xx-small;border-collapse:collapse"><div style="font-size:small"><a href="https://10pines.com/" style="font-family:Roboto,Helvetica,Arial,sans-serif;font-size:medium" target="_blank"><img width="108" src="https://10pines.github.io/email-signature/10pines-firma@2x.png" style="margin-bottom: 0.5em;"></a><span style="color:rgb(0,0,0);font-family:Roboto,Helvetica,Arial,sans-serif;font-size:medium"></span><h1 style="margin:0px;font-size:14px">Hernán Wilkinson</h1><h2 style="margin:0px 0px 1em;font-size:14px;color:rgb(100,100,100)">Software Developer & Coach</h2><p style="margin:0px;color:rgb(100,100,100);font-size:12px">Alem 896, Floor 6, Buenos Aires, Argentina</p><p style="margin:0px;color:rgb(100,100,100);font-size:12px">+54 11 6091 3125</p><p style="margin:0px;color:rgb(100,100,100);font-size:12px">@HernanWilkinson</p></div></span></div></div>