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

Started with lisp!

Name: Anonymous 2007-07-29 19:11 ID:ya+3Ex+e

You faggots made me start learning lisp..
first of all THANKS a lot. seriously this language excites me more than anything!
btw, im learning CL.

Now what i've figured out about lisp is that f(x y z) is (f x y z) and that it's all expressions and macros.
I got used to progn quickly, and to defun etc

But i don't know the ``standard'' functions/macros/whatever, is there some reference i could use?

Also, how can i do something similar to Cs ``...''?

Something like
(defun f (a ...) (rest of code))

How can i reach a certain member of an array?
I've wrote this macro, but is it a good solution?
(defun reach-member (list nmemb) (if (< nmemb 0) () (if (= nmemb 0) (car list) (reach-member (cdr list) (- nmemb 1)))))

Also, where can i learn how to indent lisp code?
What are the rules?

Name: Anonymous 2007-07-29 19:14 ID:vhLurBX2

reference = http://www.cliki.net/CLHS

use emacs & SLIME

Name: Anonymous 2007-07-29 19:15 ID:vhLurBX2

Also, how can i do something similar to Cs ``...''? Something like (defun f (a ...) (rest of code))
read a book about lisp it will cover this

How can i reach a certain member of an array?
reach-member is a bad name, you can use 1- instead of (- x 1), just use elt or nth instead of writing it yourself, its a function not a macro, that only works on lists (like nth) not arrays which elt does work on

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