ABCLJ environment You can overload the env with a new one using the binding clojure macro
ABCLJ environment You can overload the *env* with a new one using the binding clojure macro
(->bool obj)
Get boolean value of Common Lisp object
Get boolean value of Common Lisp object
(alist->map obj)
Converts an assoc list to a clojure map. Be aware that Common Lisp likes to upper-case things, so a cl keyword ':test' will be returned as :TEST
Converts an assoc list to a clojure map. Be aware that Common Lisp likes to upper-case things, so a cl keyword ':test' will be returned as :TEST
(cl-complex form)
Builds a common lisp Complex number
Builds a common lisp Complex number
(cl-cons coll)
Builds a Common Lisp Cons object. The Cons object is NOT nil terminated automatically, if you want to build a non-dotted cl list you will have to put a cl-nil at the end. Example: (cl-cons [1 2]) => (1 . 2) (cl-cons [1 2 3 cl-nil) => (1 2 3) (cl-cons [[1 2] [3 4]) => ((1 . 2) 3 . 4) (cl-cons [[1 2] [3 4] cl-nil]) => ((1 . 2) (3 . 4))
Builds a Common Lisp Cons object. The Cons object is NOT nil terminated automatically, if you want to build a non-dotted cl list you will have to put a cl-nil at the end. Example: (cl-cons [1 2]) => (1 . 2) (cl-cons [1 2 3 cl-nil) => (1 2 3) (cl-cons [[1 2] [3 4]) => ((1 . 2) 3 . 4) (cl-cons [[1 2] [3 4] cl-nil]) => ((1 . 2) (3 . 4))
(cl-double form)
Builds a Common Lisp DoubleFloat
Builds a Common Lisp DoubleFloat
(cl-function? obj)
Check if the object is a Common Lisp function
Check if the object is a Common Lisp function
(cl-int form)
Build a Common lisp LispInteger
Build a Common lisp LispInteger
(cl-load f)
Execute the contents of the file f in the CL environment. Works like the load CL function.
Execute the contents of the file f in the CL environment. Works like the load CL function.
(cl-load-resource f)
Execute the contents of the resource file f in the CL environment. Works like the load CL function. Useful if you want to embed a CL file in a .jar
Execute the contents of the resource file f in the CL environment. Works like the load CL function. Useful if you want to embed a CL file in a .jar
(cl-load-string s)
Execute the contents of the string as it was read from a file in the CL environment
Execute the contents of the string as it was read from a file in the CL environment
(cl-obj-array? obj)
Check if obj is instance of LispObject[]
Check if obj is instance of LispObject[]
(cl-obj? obj)
Check if the object is a Common Lisp object
Check if the object is a Common Lisp object
(cl-string form)
Builds a Common Lisp SimpleString
Builds a Common Lisp SimpleString
(cl-symbol form)
Builds a common lisp Symbol
Builds a common lisp Symbol
(coerce obj s)
Common Lisp coerce function. It is hard to work with some CL data structures on the java/clj side. Coercing them to list makes things a lot easier. See also cons->vec.
Common Lisp coerce function. It is hard to work with some CL data structures on the java/clj side. Coercing them to list makes things a lot easier. See also cons->vec.
(cons->vec obj)
Converts a CL cons/list to a clojure vector. Lists will be cl-nil terminated, dotted conses will be not.
Converts a CL cons/list to a clojure vector. Lists will be cl-nil terminated, dotted conses will be not.
(defun sym args & body)
Defines a new function named sym
in the global environment.
Defines a new function named `sym` in the global environment.
(funcall f arg)
(funcall f arg1 arg2)
(funcall f arg1 arg2 arg3)
(funcall f arg1 arg2 arg3 arg4)
(funcall f arg1 arg2 arg3 arg4 arg5)
(funcall f arg1 arg2 arg3 arg4 arg5 arg6)
(funcall f arg1 arg2 arg3 arg4 arg5 arg6 arg7)
(funcall f arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8)
Call a CL function, kinda like the CL funcall
Call a CL function, kinda like the CL funcall
(getfunction sym)
Get a function from a symbol The namespace on the symbol will be used as the CL package on the CL symbol. If the package is nil then the package COMMON-LISP-USER will be used.
Get a function from a symbol The namespace on the symbol will be used as the CL package on the CL symbol. If the package is nil then the package COMMON-LISP-USER will be used.
(getvar sym)
Get the symbol value. The namespace on the symbol will be used as the CL package on the CL symbol. If the package is nil then the package COMMON-LISP-USER will be used.
Get the symbol value. The namespace on the symbol will be used as the CL package on the CL symbol. If the package is nil then the package COMMON-LISP-USER will be used.
(princ-to-string obj)
Get a string representation of a LispObject as it CL function princ-to-string would return
Get a string representation of a LispObject as it CL function princ-to-string would return
(setfunction sym func)
Set a function to a symbol. The namespace on the symbol will be used as the CL package on the CL symbol. If the package is nil then the package COMMON-LISP-USER will be used.
Set a function to a symbol. The namespace on the symbol will be used as the CL package on the CL symbol. If the package is nil then the package COMMON-LISP-USER will be used.
(setvar sym obj)
Set a value to a symbol. The namespace on the symbol will be used as the CL package on the CL symbol. If the package is nil then the package COMMON-LISP-USER will be used.
Set a value to a symbol. The namespace on the symbol will be used as the CL package on the CL symbol. If the package is nil then the package COMMON-LISP-USER will be used.
(with-cl body)
(with-cl headbody & restbody)
Run body as a Common Lisp program, the body should be quoted. Bindings will be shared between 'with-cl' calls but does not interfere or access global bindings, to set or get global state user the setvar or getvar functions. Return the CL object of last form. Readers macros in the CL source should NOT be used as they will be capture by the clj compiler.
Throws a UnhandledCondition in case of failure.
Run body as a Common Lisp program, the body should be quoted. Bindings will be shared between 'with-cl' calls but does not interfere or access global bindings, to set or get global state user the setvar or getvar functions. Return the CL object of last form. Readers macros in the CL source should NOT be used as they will be capture by the clj compiler. Throws a UnhandledCondition in case of failure.
(with-cl->clj body)
(with-cl->clj headbody & restbody)
Run body as a Common Lisp program, the body should be quoted. Bindings will be shared between 'with-cl->clj' calls but does not interfere or access global bindings, to set or get global state user the setvar or getvar functions. Return the converted CL object to its clj counterpart. Readers macros in the CL source should NOT be used as they will be capture by the clj compiler.
Throws a UnhandledCondition in case of failure.
Run body as a Common Lisp program, the body should be quoted. Bindings will be shared between 'with-cl->clj' calls but does not interfere or access global bindings, to set or get global state user the setvar or getvar functions. Return the converted CL object to its clj counterpart. Readers macros in the CL source should NOT be used as they will be capture by the clj compiler. Throws a UnhandledCondition in case of failure.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close