Liking cljdoc? Tell your friends :D

abclj.core


*env*clj

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
sourceraw docstring

->boolclj

(->bool obj)

Get boolean value of Common Lisp object

Get boolean value of Common Lisp object
sourceraw docstring

alist->mapclj

(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
sourceraw docstring

cl-complexclj

(cl-complex form)

Builds a common lisp Complex number

Builds a common lisp Complex number
sourceraw docstring

cl-consclj

(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)) 
sourceraw docstring

cl-doubleclj

(cl-double form)

Builds a Common Lisp DoubleFloat

Builds a Common Lisp DoubleFloat
sourceraw docstring

cl-function?clj

(cl-function? obj)

Check if the object is a Common Lisp function

Check if the object is a Common Lisp function
sourceraw docstring

cl-intclj

(cl-int form)

Build a Common lisp LispInteger

Build a Common lisp LispInteger
sourceraw docstring

cl-loadclj

(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.
sourceraw docstring

cl-load-resourceclj

(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
sourceraw docstring

cl-load-stringclj

(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
sourceraw docstring

cl-nilclj

source

cl-obj-array?clj

(cl-obj-array? obj)

Check if obj is instance of LispObject[]

Check if obj is instance of LispObject[]
sourceraw docstring

cl-obj?clj

(cl-obj? obj)

Check if the object is a Common Lisp object

Check if the object is a Common Lisp object
sourceraw docstring

cl-ratioclj

(cl-ratio form)

Builds a Common Lisp Ratio

Builds a Common Lisp Ratio
sourceraw docstring

cl-stringclj

(cl-string form)

Builds a Common Lisp SimpleString

Builds a Common Lisp SimpleString
sourceraw docstring

cl-symbolclj

(cl-symbol form)

Builds a common lisp Symbol

Builds a common lisp Symbol
sourceraw docstring

cl-tclj

source

Clojurifiablecljprotocol

cl->cljclj

(cl->clj this)
source

coerceclj

(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.
sourceraw docstring

CommonLispfiablecljprotocol

clj->clclj

(clj->cl this)
source

cons->vecclj

(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.
sourceraw docstring

declojurifyclj

(declojurify coll)
source

defuncljmacro

(defun sym args & body)

Defines a new function named sym in the global environment.

Defines a new function named `sym` in the global environment.
sourceraw docstring

Evaluatablecljprotocol

cl-evaluateclj

(cl-evaluate this)
source

funcallclj

(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
sourceraw docstring

getfunctionclj

(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. 
sourceraw docstring

getvarclj

(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. 
sourceraw docstring

new-envclj

(new-env)

Returns a new environment

Returns a new environment
sourceraw docstring

prin1-to-stringclj

(prin1-to-string obj)
source

princ-to-stringclj

(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
sourceraw docstring

setfunctionclj

(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. 
sourceraw docstring

setvarclj

(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.
sourceraw docstring

with-clcljmacro

(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.
sourceraw docstring

with-cl->cljcljmacro

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close