My code in lisp is as follows: (defun solve-hanoi(from) (hanoi (length from) from \'() \'())) (defun hanoi(height from to aux) (when (>= height 1)
I am trying to write a program in Common Lisp using GNU ClISP to c开发者_JS百科ompile it. I would like to enter a list such as (A(B (C) ()) (D (E) (F (G) ()))) and depending on the first word print ou
It is very easy to change CLisp\'s current working directory: >cat ~/.clisprc.lisp ;;; The following lines added by ql:add-to-in开发者_运维百科it-file:
I am trying to modify an existing Hill-climb function, which takes two node names (such as A and E), and has an optional parameter which is used recursively (a queue). I\'m trying to define a function
I am trying to inspect the value of a variable 开发者_如何学运维at a determined breakpoint. Here is my simplified code:
In clojure, i can use doc as below: Clojure> (doc juxt) ------------------------- clojure.core/juxt ([f] [f g] [f g h] [f g h & fs])
The following code will raise: SYSTEM::%E开发者_运维问答XPAND-FORM: (SETQ NUM (SUBSTRING LINE 6)) should be a lambda expression.
Now i have to copy the hastable to a list before sorting it: (defun good-red () (let ((tab (make-hash-table)) (res \'()))
In visual lisp, you can use (atoi \"123\") to convert \"123\" to 123.It seems there is no \"atoi\" like function in clisp ?
In ghci, i can use \"cd\" to change its current directory as below: $cat ~/.ghci :def hoogle \\str -> return $ 开发者_如何学Go\":! hoogle --count=15 \\\"\" ++ str ++ \"\\\"\"