Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
#(
|
||||
'The better the 4-wheel drive, the further you''ll be from help when ya get stuck!'
|
||||
'headmistressship'
|
||||
'aardvark'
|
||||
'😍😀🙌💃😍😍😍🙌'
|
||||
) do:[:eachWord |
|
||||
|shortened|
|
||||
|
||||
shortened :=
|
||||
String streamContents:[:out |
|
||||
eachWord inject:nil into:[:prev :this |
|
||||
prev ~= this ifTrue:[out nextPut:this].
|
||||
this
|
||||
]
|
||||
].
|
||||
Transcript
|
||||
showCR:( eachWord,'(length:',eachWord size,')' );
|
||||
showCR:( shortened,'(length:',shortened size,')' ).
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue