Liking cljdoc? Tell your friends :D

errors.dictionaries


?-nameclj

(?-name n)

?-name takes a string and converts it into a new string that is easier to understand when reading error messages it replaces specific strings and removes ? and at the end of every string that gets passed to it

?-name takes a string and converts it into a new string
that is easier to understand when reading error messages
it replaces specific strings and removes ? and 
 at the end of
every string that gets passed to it
sourceraw docstring

arg-strclj

(arg-str n)

arg-str takes a non-negative integer as a string and matches it to the corresponding argument number as a string, number as adjective

arg-str takes a non-negative integer as a string and matches it
to the corresponding argument number as a string, number as adjective
sourceraw docstring

beginandendclj

(beginandend x)

beginandend puts (?s) at the beginning of a string and (.*) at the end of a string and turns it into a regex

beginandend puts (?s) at the beginning of a string and (.*) at the end
of a string and turns it into a regex
sourceraw docstring

best-approximationclj

(best-approximation t)
source

change-ifclj

(change-if x)

change-if takes a string and will output a string based on if the string is "if" or not

change-if takes a string and will output a string based on if
the string is "if" or not
sourceraw docstring

check-divideclj

(check-divide n)

check-divide takes a string and returns either "/" or n this is only used for / because / is removed from the resulting error message so this adds it back in.

check-divide takes a string and returns either "/" or n
this is only used for / because / is removed from the resulting
error message so this adds it back in.
sourceraw docstring

check-function-nameclj

(check-function-name n)

check-function-name takes a string and converts it into a new string that has " function " added to the end if it is not anonymous function

check-function-name takes a string and converts it into a new string
that has " function " added to the end if it is not
anonymous function
sourceraw docstring

check-if-anonymous-functionclj

(check-if-anonymous-function fname)

Takes a string as function name and returns a string "anonymous function" if it is an anonymous function, its name otherwise

Takes a string as function name and returns a string "anonymous function"
if it is an anonymous function, its name otherwise
sourceraw docstring

general-typesclj

source

get-dictionary-typeclj

(get-dictionary-type x)

get-dictionary-type takes a string and returns the corresponding type if the string is "nil" we return an empty string so the result in the error dictionary does not return nil nil

get-dictionary-type takes a string and returns the corresponding type
if the string is "nil" we return an empty string so the result in the
error dictionary does not return nil nil
sourceraw docstring

get-function-nameclj

(get-function-name fname)
source

get-macro-nameclj

(get-macro-name mname)
source

get-match-nameclj

(get-match-name fname)

extract a function name from a qualified name

extract a function name from a qualified name
sourceraw docstring

get-spec-textclj

(get-spec-text full-error)

return the string that failed a given spec from a spec error

return the string that failed a given spec from a spec error
sourceraw docstring

get-typeclj

(get-type t)

returns a user-friendly representation of a type if it exists in the type-dictionary, or its default representation as an unknown type

returns a user-friendly representation of a type if it exists in the type-dictionary,
or its default representation as an unknown type
sourceraw docstring

get-type-with-nilclj

(get-type-with-nil v)

Takes a value that can be nil and returns its type in a user-readable form

Takes a value that can be nil and returns its type in a user-readable form
sourceraw docstring

lookup-funct-nameclj

(lookup-funct-name fname)

looks up pre-defined function names, such as PLUS. If not found, returns the original

looks up pre-defined function names, such as _PLUS_. If not found,
returns the original
sourceraw docstring

number-argclj

(number-arg n)

number-arg takes a positive integer as a string and changes it to a string with the numbers corresponding spelling followed by "argument(s)", this is the number of arguments

number-arg takes a positive integer as a string and changes it to a
string with the numbers corresponding spelling followed by
"argument(s)", this is the number of arguments
sourceraw docstring

number-valsclj

(number-vals failedvals failedlength)

number-vals takes two strings, one which are the arguments that caused an error and the length required of the thing it errored on. It returns the number of arguments in failedvals and uses failedlength to determine the correct response.

number-vals takes two strings, one which are the arguments that caused
an error and the length required of the thing it errored on. It returns the
number of arguments in failedvals and uses failedlength to determine
the correct response.
sourceraw docstring

number-wordclj

(number-word n)

number word takes a positive integer as a string and changes it to a string with the numbers corresponding spelling

number word takes a positive integer as a string and changes it to a
string with the numbers corresponding spelling
sourceraw docstring

predefined-namesclj

source

remove-inlinerclj

(remove-inliner fname)

If fname ends with inliner or any generated name with --, this will return everything before it

If fname ends with inliner or any generated name with --, this will return everything before it
sourceraw docstring

type-and-valclj

(type-and-val s)

Takes a value (as a string) from a spec error, returns a vector of its type and readable value. Returns "anonymous function" as a value when given an anonymous function

Takes a value (as a string) from a spec error, returns a vector
of its type and readable value. Returns "anonymous function" as a value
when given an anonymous function
sourceraw docstring

type-dictionaryclj

source

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

× close