unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Juri Linkov <juri@linkov.net>
To: help-gnu-emacs@gnu.org
Subject: Re: problems of everyday life
Date: Wed, 16 Nov 2022 09:51:01 +0200	[thread overview]
Message-ID: <86v8nfuyl6.fsf@mail.linkov.net> (raw)
In-Reply-To: <87r0y4w8hy.fsf@dataswamp.org> (Emanuel Berg's message of "Tue, 15 Nov 2022 16:19:21 +0100")

> 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



  parent reply	other threads:[~2022-11-16  7:51 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-15 15:19 problems of everyday life Emanuel Berg
2022-11-15 16:45 ` Heime
2022-11-15 16:46 ` Dmitry Gutov
2022-11-15 17:17   ` Heime
2022-11-16 12:02     ` Akib Azmain Turja
2022-11-15 18:38 ` tomas
2022-11-16  7:51 ` Juri Linkov [this message]
2022-11-16 12:10   ` Akib Azmain Turja
2022-11-16 20:39     ` Emanuel Berg
2022-11-17  3:04     ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-17  4:56       ` Emanuel Berg
2022-11-17  5:48       ` tomas
2022-11-17  6:13       ` Yuri Khan
2022-11-17  6:25         ` Stefan Monnier
2022-11-16 14:31   ` Emanuel Berg
2022-11-16 14:54   ` Emanuel Berg
2022-11-16 16:14   ` Rudolf Adamkovič
2022-11-16 17:17     ` Emanuel Berg
2022-11-16 20:54 ` North Year
2022-11-16 21:06   ` Emanuel Berg
2022-11-16 21:30   ` Emanuel Berg
2022-11-16 21:38   ` Emanuel Berg
2022-11-17  6:33 ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86v8nfuyl6.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).