Re: LOOP blows!



On Feb 7, 4:38 pm, Maciej Katafiasz <mathr...@xxxxxxxxx> wrote:
Den Thu, 07 Feb 2008 16:13:34 -0800 skrev Kaz Kylheku:

Okay, Kenny, you old SOB, here is my final submission to your obfuscated
LOOP contest:

(LOOP FOR WITH =
 '(LOOP FOR WITH = '(LOOP FOR WITH) FOR AND IN WITH FOR = = AND FOR
FINALLY =
   AND COLLECT FINALLY INTO IF FINALLY
   (RETURN
    (LOOP FOR IN IN IF WHEN (EQUAL IN ''(LOOP FOR WITH)) COLLECT
     (LIST 'QUOTE WITH) ELSE COLLECT IN)))
 FOR AND IN WITH FOR = = AND FOR FINALLY = AND COLLECT FINALLY INTO IF
FINALLY
 (RETURN
  (LOOP FOR IN IN IF WHEN (EQUAL IN ''(LOOP FOR WITH)) COLLECT
   (LIST 'QUOTE WITH) ELSE COLLECT IN)))

That is an impressive way to say NIL, but I'm somewhat disappointed that
it's not a quine.
Can we expect version Final.1 to fix that bug?

Nope, works on my machine. Your LOOP is obviously broken. :)

Does this return (1 2 3)?

(loop for x = '(1 2 3) for y in x do collect y)

If so, does this also?

(loop for x = '(1 2 3)
for y in x
for z = y
for w = y
collect w)


.



Relevant Pages

  • Re: Stein: Cells might be intelligent
    ...   Quote ... in the cell itself so that's probably a big difference between the two ... Darwinists have never observed natural species being originated ... ...
    (talk.origins)
  • Re: Re:
    ... wrong with the conduct of the quotee, thus the quotee must be a pretty ... In the case of a "fabricated" quote, ... In the case of a VALID quote, gary coward is of course WRONG, which is ...   Furthermore, old ...
    (rec.gambling.sports)
  • Re: Stein: Cells might be intelligent
    ...   Quote ... in the cell itself so that's probably a big difference between the two ... and the Darwinists have no theory whatsoever about the origin of life, ...
    (talk.origins)
  • Re: Globaloney elsewhere
    ... to quote Bill Clinton: ... Andre suggested I quote him as the orignator of the term "Captain ... Andre Lieven     ... Does Feminism Discriminate Against Men? ...
    (soc.men)
  • Re: Is petrol refining viable?
    ... mixture into its component parts, or fractions, based on the ... differences in their volatilities." ... What a nice quote, where did you steal it from? ...   You certainly did get ...
    (uk.transport)