(fn-name f)
Takes a function object and returns a symbol that corresponds to the result of the lookup of its name. If no name is found, a symbol 'anonymous function' (non-conformant) is returned. Handles spec-checking functions differently since they are looked up in corefns-map by full name. Warning: 'anonymous function' symbol is non-conformant
Takes a function object and returns a symbol that corresponds to the result of the lookup of its name. If no name is found, a symbol 'anonymous function' (non-conformant) is returned. Handles spec-checking functions differently since they are looked up in corefns-map by full name. Warning: 'anonymous function' symbol is non-conformant
(get-exception-class-and-rest ex-str)
returns a vector containing the class and then the message without the class marking
returns a vector containing the class and then the message without the class marking
(is-function? v)
Uses our dictionary to check if a value should be printed as a function
Uses our dictionary to check if a value should be printed as a function
(line-number-format line ch)
Takes a line number and a character position and returns a string of how they are reported in an error message
Takes a line number and a character position and returns a string of how they are reported in an error message
(lookup-fns v)
Recursively replace internal Clojure function names with user-readable ones in the given value
Recursively replace internal Clojure function names with user-readable ones in the given value
(process-spec-errors ex-str)
Takes a message from an exception as a string and returns a message object, to be displayed by the repl or IDE
Takes a message from an exception as a string and returns a message object, to be displayed by the repl or IDE
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close