[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.
Thanks,
--
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich
More information about the Cuis-dev
mailing list