[squeak-dev] Hyphenation puzzle/exercise

Stéphane Rollandin lecteur at zogotounga.net
Fri Mar 10 00:56:50 UTC 2023


And this one is faster:


s := 'eg11dc5cad154625885bc70d4f42818e' readStream.
pattern := #(8 4 4 4 12).

String streamContents: [:str |
	pattern do: [:ea |
		str nextPutAll: (s next: ea); nextPut: $-].
	str skip: -1]


Stef


More information about the Squeak-dev mailing list