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

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

Re: How to improve the readability of (any) LISP or any highlevel functi


From: LanX
Subject: Re: How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ?
Date: Sun, 2 Jan 2011 07:01:54 -0800 (PST)
User-agent: G2/1.0


Paul Rubin schrieb:

> That is pretty ugly; in Haskell you could write
>
>    my_list = [1, 1, 1, 1, 2, 3, 3, 1, 1, 4, 5, 5, 5, 5]
>    main = print [head xs | xs <- group my_list]

does this really produce the desired output?
Will the second 1 really be printed?

And why do you guys switch to operate on digits instead of strings?


reply via email to

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