Liking cljdoc? Tell your friends :D

utilities.spec_generator


apply-persistclj

(apply-persist & vars)

apply-persist checks if "Persistent" is anywhere in a sequence.

apply-persist checks if "Persistent" is anywhere in a
sequence.
sourceraw docstring

apply-typesclj

(apply-types x vars)

apply-persist checks if "Persistent" is anywhere in a sequence.

apply-persist checks if "Persistent" is anywhere in a
sequence.
sourceraw docstring

arg-typeclj

source

arglists->argtypesclj

(arglists->argtypes arglists)

arglists->argtypes takes a list of lists of arguments as strings and changes the arguments into keys corresponding to arg-type.

arglists->argtypes takes a list of lists of arguments as strings and
changes the arguments into keys corresponding to arg-type.
sourceraw docstring

args-and-rangeclj

(args-and-range arglist x)

This function helps keep the length of replace count down it sends :args and a minimum and maximum to spec-length.

This function helps keep the length of replace count down
it sends :args and a minimum and maximum to spec-length.
sourceraw docstring

argtypes->moretypesclj

(argtypes->moretypes arglists)

argtypes->moretypes takes a coll of colls of keywords and changes the keywords depending on what it is and the position it is in within the coll of colls.

argtypes->moretypes takes a coll of colls of keywords and changes the
keywords depending on what it is and the position it is in within
the coll of colls.
sourceraw docstring

check-typesclj

(check-types vars x)

check-types takes a function and returns true if the function has a Persistent in the arglists if apply-persist is passed as x or the type corresponds to whatever is passed to x.

check-types takes a function and returns true if the function
has a Persistent in the arglists if apply-persist is passed as x
or the type corresponds to whatever is passed to x.
sourceraw docstring

chomp-if-necessaryclj

(chomp-if-necessary arglists)

chomp-if-necessary checks if a coll of colls is chompable. If it is chompable it will go through remove-and and argtypes->moretypes. If it is not chompable it will only go through arglists->argtypes.

chomp-if-necessary checks if a coll of colls is chompable. If it is
chompable it will go through remove-and and argtypes->moretypes. If it is
not chompable it will only go through arglists->argtypes.
sourceraw docstring

chompable?clj

(chompable? arglists)

chompable? checks if there are no empty lists or lists with & in them in a list of lists.

chompable? checks if there are no empty lists or lists with & in them in a
list of lists.
sourceraw docstring

last-argclj

(last-arg arglists)

last-arg returns the last element of the longest coll in a coll of colls.

last-arg returns the last element of the longest coll in a coll of colls.
sourceraw docstring

last-arglistclj

(last-arglist arglists)

last-arglist takes a list of lists and gets the longest list in the list of lists.

last-arglist takes a list of lists and gets the longest list in the
list of lists.
sourceraw docstring

pre-re-defnclj

(pre-re-defn fvar)

takes a function, applies chomp-if-necessary on its arglist and turns it into a string that outputs in a form that can be used as a sort of intermediate step.

takes a function, applies chomp-if-necessary on its arglist and
turns it into a string that outputs in a form that can be used
as a sort of intermediate step.
sourceraw docstring

pre-re-defn-specclj

(pre-re-defn-spec fvar)

takes a function, applies chomp-if-necessary on its arglist and turns it into a string that outputs in the form of a spec.

takes a function, applies chomp-if-necessary on its arglist and
turns it into a string that outputs in the form of a spec.
sourceraw docstring

pre-re-defn-spec-babelclj

(pre-re-defn-spec-babel fvar)

takes a function, applies chomp-if-necessary on its arglist and turns it into a string that outputs in the form of a babel spec.

takes a function, applies chomp-if-necessary on its arglist and
turns it into a string that outputs in the form of a babel spec.
sourceraw docstring

println-recurclj

(println-recur all-vars)
(println-recur all-vars x)

This function shows everything required for a defn, to work with this there can be an intermediate step.

This function shows everything required for a defn, to work with this
there can be an intermediate step.
sourceraw docstring

println-recur-criminalsclj

(println-recur-criminals all-vars)

This function shows everything that could not be run in pre-re-defn.

This function shows everything that could not be run in pre-re-defn.
sourceraw docstring

println-recur-specclj

(println-recur-spec all-vars)

This function generates basic specs for a library.

This function generates basic specs for a library.
sourceraw docstring

println-recur-spec-babelclj

(println-recur-spec-babel all-vars)

This function generates specs that include length used in babel only.

This function generates specs that include length used in
babel only.
sourceraw docstring

println-recur-spec-babel-vectorclj

(println-recur-spec-babel-vector all-vars)

This function generates specs that include length used in babel only and puts them into a file h.txt.

This function generates specs that include length used in
babel only and puts them into a file h.txt.
sourceraw docstring

println-recur-vectorclj

(println-recur-vector all-vars)

This function generates specs that include length used in babel only.

This function generates specs that include length used in
babel only.
sourceraw docstring

re-type-replaceclj

This hashmap used for replacing the keywords with strings.

This hashmap used for replacing the keywords with strings.
sourceraw docstring

remove-andclj

(remove-and arglists)

remove-and removes the second to last element in the longest coll in a coll of colls.

remove-and removes the second to last element in the longest coll in a
coll of colls.
sourceraw docstring

replace-countclj

(replace-count arglist)

This function takes a vector, creates a vector with the count of the vectors in the vector and outputs the corresponding string.

This function takes a vector, creates a vector with the count of the
vectors in the vector and outputs the corresponding string.
sourceraw docstring

same-type2?clj

(same-type2? & args)

same-type2? replaces keywords with corresponding strings in a coll.

same-type2? replaces keywords with corresponding strings in a coll.
sourceraw docstring

second-arglistclj

(second-arglist arglists)

second-arglist returns the second coll in a coll of colls.

second-arglist returns the second coll in a coll of colls.
sourceraw docstring

second-to-last-argclj

(second-to-last-arg arglists)

second-to-last-arg returns the second to last element of the longest coll in a coll of colls.

second-to-last-arg returns the second to last element of the longest coll
in a coll of colls.
sourceraw docstring

spec-lengthclj

(spec-length n & [arg])

This function takes an argument n and changes it to a corresponding string.

This function takes an argument n and changes it to a corresponding string.
sourceraw docstring

type-dataclj

source

type-multiclj

This hashmap used for checking that certain keys exist.

This hashmap used for checking that certain keys exist.
sourceraw docstring

type-multi-replaceclj

This hashmap used for checking that certain keys exist and replacing them.

This hashmap used for checking that certain keys exist and replacing them.
sourceraw docstring

type-multi-replace+clj

This hashmap used for replacing keys.

This hashmap used for replacing keys.
sourceraw docstring

type-replaceclj

This hashmap used for replacing the keywords with strings.

This hashmap used for replacing the keywords with strings.
sourceraw docstring

type-singleclj

This hashmap used for checking that certain keys exist and replacing them.

This hashmap used for checking that certain keys exist and replacing them.
sourceraw docstring

type-single-no-vecclj

This hashmap used for checking that certain keys exist and replacing them.

This hashmap used for checking that certain keys exist and replacing them.
sourceraw docstring

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

× close