The where is a better suffix than the "on".

I'd prefer something like:
'abcDefKjm' splitWhere: [:a | a isUppercase ] -> #('abc' 'Def' 'Kjm')

Regards,

Esteban A. Maringolo

On Wed, Sep 29, 2021 at 1:58 PM stephane ducasse
<[email protected]> wrote:
>
> 'abcDefKjlkj' piecesCutWhere:[ :a :b | b isUppercase ]
>
>
>
> > On 29 Sep 2021, at 18:55, stephane ducasse <[email protected]> 
> > wrote:
> >
> > 'abcDef' splitOn: [ :c | c isUppercase ]
> >>>> ‘abc’ ‘ef’
> >
> > but I need
> >
> > 'abcDef' splitOn: [ :c | c isUppercase ]
> >>>> ‘abc’ ‘Def’
> >
> > :(

Reply via email to