[Cuis-dev] Split string

Juan Vuletich juan at jvuletich.org
Tue Nov 30 09:22:15 PST 2021

On 11/30/2021 12:53 PM, Philip Bernhart via Cuis-dev wrote:
> Hi,
> Mariano Montone via Cuis-dev<cuis-dev at lists.cuis.st>  writes:
>> Hello,
>> I have a small proposal.
> I would only name it slightly differently. Something
> like #splitAt: or #splitBy:
> My 0.02 EUR,
> Philip

Isn't that essentially the same as #findTokens: ?

'Hello World' findTokens: 'o'.           ->          an 
OrderedCollection('Hell' ' W' 'rld').
'Hello World' split: 'o'.            ->          #('Hell' ' W' 'rld').

'Hello World' findTokens: 'ol'.            ->          an 
OrderedCollection('He' ' W' 'r' 'd')
'Hello World' split: 'ol'.            ->          #('He' ' W' 'r' 'd')

I know, #findTokens is not a very nice name. But it could be kept for 
historical reasons, calling whatever easier to find name we choose.


Juan Vuletich

More information about the Cuis-dev mailing list