Future sort

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Future sort

Bert Freudenberg
| 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


Reply | Threaded
Open this post in threaded view
|

Re: Future sort

timrowledge

> On 25-04-2017, at 6:30 AM, Bert Freudenberg <[hidden email]> 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; [hidden email]; 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.