<div dir="ltr"><div>Hi all,</div><div>from time to time, we might want to add some Rosetta snippets for our favourite Smalltalk flavor.</div><div>I have added a Squeak entry for <a href="https://rosettacode.org/wiki/Hamming_numbers#Smalltalk">https://rosettacode.org/wiki/Hamming_numbers#Smalltalk</a></div><div><br></div><div>This is related to the discussion having taken place here about Generator(s), timesCollect: ...</div><div>I have used Xtreams for laziness capability.</div><div>It's not perfect, because the block read stream does not have absolute positioning capability.<br></div><div>I could have used a Generator, if only it had the capability to skip a batch of items...</div><div><br></div><div>The snippet is reasonably fast.</div><div><br></div><div>One of the pitfalls is the syntax for declaring classes and methods (bangs gives a wrong idea of what Smalltalk coding is).<br></div><div>I guess that's one of the reasons motivating Pharo's Tonel format (like the gnu format)<br></div></div>