[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems of everyday life
From: |
Emanuel Berg |
Subject: |
Re: problems of everyday life |
Date: |
Wed, 16 Nov 2022 15:31:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Juri Linkov wrote:
>> or maybe
>>
>> (apply #'+ '(5 7 10))
>>
>> or ... well, what do you prefer?
>
> This reminds the implementation of sleep sort:
>
> (dolist (i '(3 1 4 1 5 92 65 3 5 89 79 3))
> (run-with-timer (* i 0.001) nil 'message "%d" i))
>
> The sorted output printed in the *Messages* buffer:
>
> 1 [2 times]
> 3 [3 times]
> 4
> 5 [2 times]
> 65
> 79
> 89
> 92
Haha, brilliant :)
--
underground experts united
https://dataswamp.org/~incal
Re: problems of everyday life, North Year, 2022/11/16
Re: problems of everyday life, Jean Louis, 2022/11/17