--- Begin Message ---
Op 30-12-2018 om 02:14 schreef Ben Coman:
'abcdefg' asArray overlappingPairsRemainderCollect: [ :a :b :rem | { a.b.rem } ]
Sorry, I do not see how this can work so I can find the answer
qjhvhtzxzqqjkmpb
is nice because is has a pair that appears twice (qj
)
so if I try it on the code for overlappingPairsRemainderCollect I see this as answer :
"#($q $j #($h $v $h $t $z $x $z $q $q $j $k $m $p $b))"
"#($j $h #($v $h $t $z $x $z $q $q $j $k $m $p $b))"
"#($h $v #($h $t $z $x $z $q $q $j $k $m $p $b))"
"#($v $h #($t $z $x $z $q $q $j $k $m $p $b))"
"#($h $t #($z $x $z $q $q $j $k $m $p $b))"
"#($t $z #($x $z $q $q $j $k $m $p $b))"
"#($z $x #($z $q $q $j $k $m $p $b))"
"#($x $z #($q $q $j $k $m $p $b))"
"#($z $q #($q $j $k $m $p $b))"
"#($q $q #($j $k $m $p $b))"
"#($q $j #($k $m $p $b))"
"#($j $k #($m $p $b))"
"#($k $m #($p $b))"
"#($m $p #($b))"
"#($p $b #())"
How does help me the output in telling me that there are two pairs that are there two times
--- End Message ---
Re: [Pharo-users] how to use indexes to copy a substring out of a string
Roelof Wobben via Pharo-users Sun, 30 Dec 2018 01:52:50 -0800
- [Pharo-users] how to use indexes to... Roelof Wobben
- Re: [Pharo-users] how to use i... Hernán Morales Durand via Pharo-users
- Re: [Pharo-users] how to u... Roelof Wobben
- Re: [Pharo-users] how to use i... Ben Coman
- Re: [Pharo-users] how to u... Roelof Wobben via Pharo-users
- Re: [Pharo-users] how to u... Roelof Wobben via Pharo-users
- Re: [Pharo-users] how ... Ben Coman
- Re: [Pharo-users] how to use i... Richard O'Keefe via Pharo-users