| a | a *:=* #(5 2 6 9 1 4 3 8 10 7). a do: [:each | (Transcript future: each) showln: each].
- Bert -
PS: Maybe someone wants to add this to to https://rosettacode.org/wiki/Sorting_algorithms/Sleep_sort
On 25-04-2017, at 6:30 AM, Bert Freudenberg bert@freudenbergs.de wrote:
| a | a := #(5 2 6 9 1 4 3 8 10 7). a do: [:each | (Transcript future: each) showln: each].
Or even ? #(5 2 6 9 1 4 3 8 10 7) do: [:each | (Transcript future: each) showln: each]
What always alarms me when I look at lists of the ‘same’ code in a bunch of languages is just how hideously ugly they are. Blech.
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Useful Latin Phrases:- Mihi ignosce. Cum homine de cane debeo congredi = Excuse me. I've got to see a man about a dog.
squeak-dev@lists.squeakfoundation.org