>>8 No that is terribly unscheme like, you should do:
(define display-list display)
Name:
Anonymous2007-03-27 11:04 ID:JfSuPvNl
If this were a Haskell, C#, C++ or Java thread, I'd troll by posting Python or Ruby for it. However, this thread is about Scheme, and I respect Scheme.
>>11
I respect a lot of things; doesn't stop me from trolling them. You obviously don't take your trolling seriously.
Name:
Anonymous2007-03-27 16:39 ID:qQoqVq3r
>>15
Depends on my mood, I've trolled Python, Lisp and Ruby as well.
Name:
Anonymous2007-03-30 2:27 ID:5O6yxmbE
Since I don't have an interpreter and XLisp doesn't want to download... I haven't tested this code
I actually never met "display" in Scheme... and the quoted parenthesis are not what professors expect. Someone else can probably check and expand on this idea below. You may need a final check for the empty list, because I'm not sure if it causes "more" of the list evaluated:
(define (dumplist list)
(if (atom? list)
'list # return the current value
(dumplist (cdr list)) # recursion here to evaluate rest
)
)
(define (dumplist list)
(if (atom? list)
'list # this returns the symbol "list" not the value of list
(dumplist (cdr list)) # you are stupid
) # these do not go here
) ; lisp uses fucking semi colon for a comment you moron.
LOOOOOL
ONE WORD FORCED PARANTHESIS AROUND CODE, THREAD OVER!
Name:
Anonymous2007-03-30 15:17 ID:76555Z9P
>>28
Surely it's more convoluted to make sure none of your variable names shadow any library functions that you're not using anyway. Tard.
Name:
Anonymous2007-03-30 23:39 ID:3SStrPYL
One word, forced parenthesis around code. Thread over.
Name:
Anonymous2007-03-30 23:45 ID:5O6yxmbE
What a blast this has turned into. I ALMOST forgive the bashing of my #17 code. But I'm ANONYMOUS, MOTHERFUCKERS!! :)
And nobody has really given a non-library solution to this shit. The prof. will be angry at the OP for using superiarrr code so early in the semester.
Name:
Anonymous2007-03-31 4:49 ID:EjOiRxIW
>>30
#;> (define (frest list)
(car list))
#;> (frest '(a b c))
a
Name:
Anonymous2007-03-31 12:47 ID:hTrr49Zg
(define (cons a b)
(lambda (f) (f a b)))
(define (car x)
(x (lambda (a b) a)))
(define (cdr x)
(x (lambda (a b) b)))
Who needs data structures when you have lexically scoped first class functions?
Name:
Anonymous2007-03-31 12:56 ID:GTO0cVRR
>>34
What does this have to do with the topic? Or is this just your way to say "I've read SICP"?
Name:
Anonymous2007-03-31 14:12 ID:EjOiRxIW
>>35
What does this have to do with the topic? Or is this just your way to say "I've read SICP"?
Name:
Anonymous2007-03-31 15:12 ID:hTrr49Zg
>>35
What does ANYTHING in this topic have to do with the topic?
Name:
Anonymous2007-03-31 15:15 ID:GTO0cVRR
>>37
The OP posted a nonsensical piece of useless Scheme code and the rest followed with variations of the same theme. >>34 is actually a pretty cool thing.