Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #35991

Re: Factor vs. CL

From "WJ" <w_a_x_man@yahoo.com>
Newsgroups comp.lang.forth
Subject Re: Factor vs. CL
Date 2015-01-24 12:01 +0000
Organization A noiseless patient Spider
Message-ID <ma01i9$dmb$1@dont-email.me> (permalink)
References <kheod1$nc3$1@dont-email.me>

Show all headers | View raw


WJ wrote:

> > Also, being able to vary the collection is handy.  Consider: 
> > 
> >  (loop for x in '(a b (c d) e f) 
> >        when (atom x) 
> >         collect x 
> >        else 
> >         append x) 
> >  => (A B C D E F)

Gauche Scheme:

(use srfi-42)
(append-ec (: x '(a b (c d) e f)) (if (list? x) x (list x)))
 ===>
(a b c d e f)
 

Back to comp.lang.forth | Previous | Next | Find similar | Unroll thread


Thread

Re: Factor vs. CL "WJ" <w_a_x_man@yahoo.com> - 2015-01-24 12:01 +0000

csiph-web