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: Mon, 3 Jan 2011 07:22:24 -0800 (PST)
User-agent: G2/1.0

On 2 Jan., 07:59, w_a_x_man <w_a_x_...@yahoo.com> wrote:

> p=nil; %w(a a a b c c a a d e e e).select{|x| x!=p && p=x}
>     ==>["a", "b", "c", "a", "d", "e"]

and by translating my perl code you also inherited it's restrictions

p=nil; ["a","a","b",false,false,"e"].select{|x| x!=p && p=x}
=> ["a", "b", "e"]


reply via email to

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