[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

Re: lisp newbie here

William James

8/8/2015 7:44:00 AM

Rob Warnock wrote:

> > (loop for (a b . rest) in '((a b c d e) (f g h) (i j k l) (m n))
> collect (list* a b :n-rest (length rest) :rest rest))
>
> ((A B :N-REST 3 :REST C D E)
> (F G :N-REST 1 :REST H)
> (I J :N-REST 2 :REST K L)
> (M N :N-REST 0 :REST))

Gauche Scheme:

(use util.match)
(map
(match-lambda ((a b . rest) (cons* a b :n-rest (length rest) :rest rest)))
'((a b c d e) (f g h) (i j k l) (m n)))

===>
((a b :n-rest 3 :rest c d e)
(f g :n-rest 1 :rest h)
(i j :n-rest 2 :rest k l)
(m n :n-rest 0 :rest))

--
[H]e was prosecuted ... for "denying" the gas chambers and the six million
figure. In July 1998 a Swiss court sentenced him to 15 months imprisonment,
and to pay a large fine, because of his writings. Rather than serve the
sentence, in August 2000 Graf went into exile. In 2001 he married a Russian
historian in Moscow. www.revisionists.com/revisionists/graf.html
10 Answers

The Peeler

6/5/2013 12:51:00 PM

0

On Tue, 4 Jun 2013 22:18:08 -0700, "%" <persent@gmail.com> wrote:

>The Revd wrote:
>> On Tue, 4 Jun 2013 20:19:16 -0700 (PDT), ??? ???? ????? ?????? ?????
>> ??????? <Royalty3850@hotmail.com> wrote:
>>
>>> Where can I buy a strong coon trap?
>>
>> Why, Yochi, you braindead coon? Do you want to catch yourself another
>> coon?
>
>how many heebs can you flame in a day

He flames, all the heebs and all, us Grik too innit! <G>

The Revd

6/5/2013 5:22:00 PM

0

On Tue, 4 Jun 2013 22:18:08 -0700, "%" <persent@gmail.com> wrote:

>The Revd wrote:
>> On Tue, 4 Jun 2013 20:19:16 -0700 (PDT), ??? ???? ????? ?????? ?????
>> ??????? <Royalty3850@hotmail.com> wrote:
>>
>>> Where can I buy a strong coon trap?
>>
>> Why, Yochi, you braindead coon? Do you want to catch yourself another
>> coon?
>
>how many heebs can you flame in a day

how many angels can dance on the head of a pin

%

6/5/2013 5:33:00 PM

0

The Revd wrote:
> On Tue, 4 Jun 2013 22:18:08 -0700, "%" <persent@gmail.com> wrote:
>
>> The Revd wrote:
>>> On Tue, 4 Jun 2013 20:19:16 -0700 (PDT), ??? ???? ????? ?????? ?????
>>> ??????? <Royalty3850@hotmail.com> wrote:
>>>
>>>> Where can I buy a strong coon trap?
>>>
>>> Why, Yochi, you braindead coon? Do you want to catch yourself
>>> another coon?
>>
>> how many heebs can you flame in a day
>
> how many angels can dance on the head of a pin

all of them

The Revd

6/5/2013 5:46:00 PM

0

On Wed, 5 Jun 2013 10:33:13 -0700, "%" <persent@gmail.com> wrote:

>The Revd wrote:
>> On Tue, 4 Jun 2013 22:18:08 -0700, "%" <persent@gmail.com> wrote:
>>
>>> The Revd wrote:
>>>> On Tue, 4 Jun 2013 20:19:16 -0700 (PDT), ??? ???? ????? ?????? ?????
>>>> ??????? <Royalty3850@hotmail.com> wrote:
>>>>
>>>>> Where can I buy a strong coon trap?
>>>>
>>>> Why, Yochi, you braindead coon? Do you want to catch yourself
>>>> another coon?
>>>
>>> how many heebs can you flame in a day
>>
>> how many angels can dance on the head of a pin
>
>all of them

what all at the same time

The Peeler

6/5/2013 5:53:00 PM

0

On Wed, 05 Jun 2013 05:50:33 -0700, The Rectum, the resident psychopath of
sci and scj, FAKING his time zone again and IMPERSONATING his master, The
Peeler, wrote:

>>> coon?
>>
>>how many heebs can you flame in a day
>
> He flames, all the heebs and all, us Grik too innit! <G>

You know yourself that you are an idiot, right, idiot? You just don't know
what to do about it! LOL

--
bozo about "The Rectum":
"you poor pathetic crippled cocksucker, everyday you gotta to come to
the people you pretend to hate just for human contact because they're
the only people who will give you the time of day,"
MID: <566d6057-0920-468a-8ffe-4106a2e4187d@ru10g2000pbc.googlegroups.com>

%

6/5/2013 7:06:00 PM

0

The Revd wrote:
> On Wed, 5 Jun 2013 10:33:13 -0700, "%" <persent@gmail.com> wrote:
>
>> The Revd wrote:
>>> On Tue, 4 Jun 2013 22:18:08 -0700, "%" <persent@gmail.com> wrote:
>>>
>>>> The Revd wrote:
>>>>> On Tue, 4 Jun 2013 20:19:16 -0700 (PDT), ??? ???? ????? ??????
>>>>> ????? ??????? <Royalty3850@hotmail.com> wrote:
>>>>>
>>>>>> Where can I buy a strong coon trap?
>>>>>
>>>>> Why, Yochi, you braindead coon? Do you want to catch yourself
>>>>> another coon?
>>>>
>>>> how many heebs can you flame in a day
>>>
>>> how many angels can dance on the head of a pin
>>
>> all of them
>
> what all at the same time

definitely

The Peeler

6/6/2013 12:46:00 AM

0

On Wed, 5 Jun 2013 19:52:56 +0200, The Peeler
<finishingoff@themoronicRevd.invalid> wrote:

>On Wed, 05 Jun 2013 05:50:33 -0700, The Rectum, the resident psychopath of
>sci and scj, FAKING his time zone again and IMPERSONATING his master, The
>Peeler, wrote:
>
>>>> coon?
>>>
>>>how many heebs can you flame in a day
>>
>> He flames, all the heebs and all, us Grik too innit! <G>
>
>You know yourself that I am an idiot, right, idiot? I just don't know
>what to do about it! LOL

You, DON'T Grik anus! LOL

The Peeler

6/6/2013 3:56:00 AM

0

On Wed, 5 Jun 2013 12:06:27 -0700, "%" <persent@gmail.com> wrote:

>The Revd wrote:
>> On Wed, 5 Jun 2013 10:33:13 -0700, "%" <persent@gmail.com> wrote:
>>
>>> The Revd wrote:
>>>> On Tue, 4 Jun 2013 22:18:08 -0700, "%" <persent@gmail.com> wrote:
>>>>
>>>>> The Revd wrote:
>>>>>> On Tue, 4 Jun 2013 20:19:16 -0700 (PDT), ??? ???? ????? ??????
>>>>>> ????? ??????? <Royalty3850@hotmail.com> wrote:
>>>>>>
>>>>>>> Where can I buy a strong coon trap?
>>>>>>
>>>>>> Why, Yochi, you braindead coon? Do you want to catch yourself
>>>>>> another coon?
>>>>>
>>>>> how many heebs can you flame in a day
>>>>
>>>> how many angels can dance on the head of a pin
>>>
>>> all of them
>>
>> what all at the same time
>
>definitely

Post PROOF psycho! <G>

%

6/6/2013 4:02:00 AM

0

The Peeler wrote:
> On Wed, 5 Jun 2013 12:06:27 -0700, "%" <persent@gmail.com> wrote:
>
>> The Revd wrote:
>>> On Wed, 5 Jun 2013 10:33:13 -0700, "%" <persent@gmail.com> wrote:
>>>
>>>> The Revd wrote:
>>>>> On Tue, 4 Jun 2013 22:18:08 -0700, "%" <persent@gmail.com> wrote:
>>>>>
>>>>>> The Revd wrote:
>>>>>>> On Tue, 4 Jun 2013 20:19:16 -0700 (PDT), ??? ???? ????? ??????
>>>>>>> ????? ??????? <Royalty3850@hotmail.com> wrote:
>>>>>>>
>>>>>>>> Where can I buy a strong coon trap?
>>>>>>>
>>>>>>> Why, Yochi, you braindead coon? Do you want to catch yourself
>>>>>>> another coon?
>>>>>>
>>>>>> how many heebs can you flame in a day
>>>>>
>>>>> how many angels can dance on the head of a pin
>>>>
>>>> all of them
>>>
>>> what all at the same time
>>
>> definitely
>
> Post PROOF psycho! <G>

get me the head of a pin TOON

William James

10/30/2015 3:11:00 PM

0

WJ wrote:

> Rob Warnock wrote:
>
> > > (loop for (a b . rest) in '((a b c d e) (f g h) (i j k l) (m n))
> > collect (list* a b :n-rest (length rest) :rest rest))
> >
> > ((A B :N-REST 3 :REST C D E)
> > (F G :N-REST 1 :REST H)
> > (I J :N-REST 2 :REST K L)
> > (M N :N-REST 0 :REST))
>
> Gauche Scheme:
>
> (use util.match)
> (map
> (match-lambda ((a b . rest) (cons* a b :n-rest (length rest) :rest rest)))
> '((a b c d e) (f g h) (i j k l) (m n)))
>
> ===>
> ((a b :n-rest 3 :rest c d e)
> (f g :n-rest 1 :rest h)
> (i j :n-rest 2 :rest k l)
> (m n :n-rest 0 :rest))

MatzLisp (Ruby):

[[:a,:b,:c,:d,:e],[:f,:g,:h],[:i,:j,:k,:l],[:m,:n]].map{|a,b,*x|
[a,b,:n_rest, x.size, :rest, *x]}

[[:a, :b, :n_rest, 3, :rest, :c, :d, :e],
[:f, :g, :n_rest, 1, :rest, :h],
[:i, :j, :n_rest, 2, :rest, :k, :l],
[:m, :n, :n_rest, 0, :rest]]

--
Blacks are an estimated 39 times more likely to commit a violent crime
against a white than vice versa, and 136 times more likely to commit robbery.
www.colorofcrime.com/2005/10/the-color-of-crime-2005/