From: Nikolaj Schumacher <n_schumacher@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: how to sort words in a line
Date: Wed, 18 Jul 2007 00:43:55 +0200 [thread overview]
Message-ID: <m2r6n6vefo.fsf@nschum.de> (raw)
In-Reply-To: <f7ivtq$eo4$3@registered.motzarella.org> (Rainer Stengele's message of "Tue\, 17 Jul 2007 19\:57\:17 +0200")
Rainer Stengele <rainer.stengele@online.de> wrote:
> Wow! Thats quite a piece of code for a not-yet Lisp programmer.
> Coming from perl this would be a simple one-liner doing the work.
Note that the actual work is in fact one line:
(sort (split-string ...) (function string-lessp))
The rest is just input and output.
regards,
Nikolaj Schumacher
next prev parent reply other threads:[~2007-07-17 22:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-17 10:01 how to sort words in a line Rainer Stengele
2007-07-17 10:26 ` Pascal Bourguignon
2007-07-17 13:46 ` Harald Hanche-Olsen
2007-07-17 17:54 ` Rainer Stengele
2007-07-17 20:12 ` Harald Hanche-Olsen
2007-07-17 17:57 ` Rainer Stengele
2007-07-17 18:07 ` Pascal Bourguignon
2007-07-17 18:20 ` Rainer Stengele
2007-07-17 19:20 ` Thien-Thi Nguyen
2007-07-17 22:43 ` Nikolaj Schumacher [this message]
2007-07-18 7:21 ` Mathias Dahl
2007-07-18 19:25 ` Rainer Stengele
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=m2r6n6vefo.fsf@nschum.de \
--to=n_schumacher@web.de \
--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).