I have the following 2 functions that I wish to combine into one: (defun fib (n) (if (= n 0) 0 (fib-r n 0 1)))
I\'ve a database which returns vaild CL expressions within double开发者_开发问答 quotes. Is it possible to convert these strings to expressions.
I\'m getting an error on one part of the :clouchdb example code (that\'s a link, but the examples.lisp file included doesn\'t work properly either).
According to CLHS entry for the INTERSECTION function (http://www.lispworks.com/documentation/HyperSpec/Body/f_isec_.htm):
(or (parse-integer (prompt-read \"Rating\") :junk-allowed t) 0) This line confuses me quite a bit. the full program is here if you need it to follow: http://paste.lisp.org/display/124929
I\'m learning common lisp and I have a problem with understanding the usage of two backquotes combined with two commas:
I am trying to group any consecutive numbers or items of a given series. all consecutive number 1 is return as a sublist.
I\'m new to Common Lisp, and found myself taking advantage of way functions returns values. The following are to two trivial examples:
In visual lisp, you can use (atoi \"123\") to convert \"123\" to 123.It seems there is no \"atoi\" like function in clisp ?
I was told that there are only atom and list as the basic data structure in Lisp, does this mean vector in Lisp is some type of list? Was vector stored as list in the underl开发者_JAVA百科ying?What yo