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

lisp newbie help

Name: Anonymous 2012-01-01 5:46

if i set the value of a symbol to a function, how do i call it with that symbol?

(setq a #'append)
(a ... ) <--how do i do this?

thanks

Name: Anonymous 2012-01-01 6:12

(defun list (list)
 (if (null? list)
   1
   (list (cdr list))))


Who the fuck would do that? That's not a reason for functions and variables to be divided.

Here's how to solve your problem:

[1]> (exit)
Bye.
$ guile
guile> (define a append)
guile> (define x '(1 2 3))
guile> (a x x)
(1 2 3 1 2 3)

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