Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

is this right /prog/?

Name: Anonymous 2009-05-09 17:20

(define (reverse x)
(if (null? x) null)
(cons (reverse (cdr x) (car x)))

Name: Anonymous 2009-05-09 17:21

no

Name: Anonymous 2009-05-09 17:22

DONT HELP HIM

Name: Anonymous 2009-05-09 17:30

lol, I was going to give him incorrect help, but when I read what he wrote it turned out to be the correct solution.

Name: Anonymous 2009-05-09 17:36

Why don't you try pattern matching.

Name: Lambda Theory 2009-05-09 18:13

(define (reverse list) (revappend list '()))
(define (revappend list accumulator)
 
(if (null? list)
     accumulator
    
(revappend (cdr list) (cons (car list) accumulator))))

Name: Anonymous 2009-05-09 18:14

>>5
Because it looks like shit in Scheme and takes a fucking page of macros to define

Name: Anonymous 2009-05-09 18:27

>>7
How about you terminate your sentences with a full stop, faggot.

Name: xkcd4lyfe 2009-05-09 18:30

               _                         _                                                       _          _      _            ____ 
 ___ _   _  __| | ___    _ __ ___   __ _| | _____   _ __ ___   ___    __ _   ___  __ _ _ __   __| |_      _(_) ___| |__   __  _|  _ \
/ __| | | |/ _` |/ _ \  | '_ ` _ \ / _` | |/ / _ \ | '_ ` _ \ / _ \  / _` | / __|/ _` | '_ \ / _` \ \ /\ / / |/ __| '_ \  \ \/ / | | |
\__ \ |_| | (_| | (_) | | | | | | | (_| |   <  __/ | | | | | |  __/ | (_| | \__ \ (_| | | | | (_| |\ V  V /| | (__| | | |  >  <| |_| |
|___/\__,_|\__,_|\___/  |_| |_| |_|\__,_|_|\_\___| |_| |_| |_|\___|  \__,_| |___/\__,_|_| |_|\__,_| \_/\_/ |_|\___|_| |_| /_/\_\____/

Name: Anonymous 2009-05-09 19:25

>>8
how about you stop masking your homosexuality behind this grammar nazi facade, and learn to love yourself

Name: Anonymous 2009-05-09 19:35

>>10
I'm not masking any type of homosexuality, in fact I freely admit I'm bi.
Why don't you have another go at an insult, go on I'll give you freebie. Anything you want to say.

Name: Anonymous 2009-05-09 19:36

>>11
The jerk store called, and they're running out of you

Name: Anonymous 2009-05-09 19:39

>>12
There you go again, leaving out full stops. Darn kids and you're XKCD. Jesus, sudo get out of this thread.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List