lisp
Clojure: determine if a function exists
how can i know if a function name provided as string is callable or not in the current context? something like:[详细]
2023-04-12 13:46 分类:问答How do you write an MIT Scheme macro to return a lambda form?
I\'m baffled by trying to create the equivalent of this trivial (in Common Lisp) macro in MIT Scheme:[详细]
2023-04-12 08:37 分类:问答Debugging Lisp & SLIME, error "Cannot find source location"
开发者_JS百科I am wrote the code with bugs. Example: (print (/ 1 0)) I am trying compile with C-c C-c.[详细]
2023-04-11 22:51 分类:问答Lisp - modify A* to check for best cost, receive list of goal nodes
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[详细]
2023-04-11 21:45 分类:问答char representation clojure
How can I represent a char (character) in clojure? Also I would like an example to test it using the char? function[详细]
2023-04-11 16:13 分类:问答Inspecting a variable in the lisp SLIME debugger
I am trying to inspect the value of a variable 开发者_如何学运维at a determined breakpoint. Here is my simplified code:[详细]
2023-04-11 11:41 分类:问答Why do many lisps have function names like "foo", "foo-1", "foo-2", etc.?
I\'ve noticed quite a few examples in various Lisps (at least Common Lisp and Emacs Lisp) where two or more functions had identical names except for a trailing number. For example, Emacs Lisp has eval[详细]
2023-04-11 06:18 分类:问答Saving lisp state
I am a beginner in lisp and have a question. When I writing some code directly in REPL (without any .lisp file!), how can I save my work/state of the interpreter to restore it 开发者_如何学编程next ti[详细]
2023-04-11 04:48 分类:问答In Clojure, how to cons or conj the elements of a collection but not the collection itself?
cons currently behaves like so: (cons \'(1 2) \'(3)) ;=> ((1 2) 3) I would like to achieve: (magic-cons \'(1 2) \'(3))[详细]
2023-04-10 21:58 分类:问答Trying to remove duplicates of atoms specified in first list from second list
I\'m trying to write a function that works like remove-duplicates, but it instead takes two lists as input, the first specifying characters for which duplication is not allowed, and the second being a[详细]
2023-04-10 17:16 分类:问答