(?-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
(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
(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
(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
(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.
(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
(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
(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
(get-match-name fname)
extract a function name from a qualified name
extract a function name from a qualified name
(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
(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
(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
(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
(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
(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.
(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
(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close