help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to sort words in a line


From: Nikolaj Schumacher
Subject: Re: how to sort words in a line
Date: Wed, 18 Jul 2007 00:43:55 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]