Liking cljdoc? Tell your friends :D

clojupyter.util


as-sorted-mapclj

source

asset-resource-pathclj

source

bytes->stringclj

(bytes->string bytes)
source

call-ifclj

(call-if pred f)

Takes a single argument. If applying pred to the argument yields a truthy value returns the result of applying f to the argument, otherwise returns the argument itself.

Takes a single argument.  If applying `pred` to the argument yields a truthy value returns the
result of applying `f` to the argument, otherwise returns the argument itself.
sourceraw docstring

code-empty?clj

(code-empty? s)
source

code-hushed?clj

(code-hushed? s)
source

define-simple-record-printcljmacro

(define-simple-record-print name format-fn)
source

delimiter-frame?clj

Accepts a single argument which must be a byte-array, returns true the array represents the Jupyter 'delimiter' frame (consisting of the bytes of the text '<IDS|MSG>' encoded as UTF-8); otherwise returns false.

Accepts a single argument which must be a byte-array, returns `true` the array represents the
Jupyter 'delimiter' frame (consisting of the bytes of the text '<IDS|MSG>' encoded as UTF-8);
otherwise returns `false`.
sourceraw docstring

display-name->identclj

(display-name->ident s)
source

falsey?clj

(falsey? v)
source

file-ancestor-ofclj

(file-ancestor-of ancestor f)
source

file-ancestorsclj

Given a file object returns a set containing the file itself and the transitive union of its parents. Note: The ancestry is derived exclusively by traversing the file values, i.e. does not matter whether or not the files thus traversed exist in an underlying file system.

Given a file object returns a set containing the file itself and the transitive union of its
parents.  Note: The ancestry is derived exclusively by traversing the *file values*, i.e. does not
matter whether or not the files thus traversed exist in an underlying file system.
sourceraw docstring

file-input-streamclj

source

file-output-streamclj

source

filename-in-dirclj

(filename-in-dir filename dir)
source

files-as-stringsclj

(files-as-strings user-homedir coll)
source

get-bytesclj

(get-bytes v)
source

IDSMSGclj

source

IDSMSG-BYTESclj

source

json-strclj

source

kernel-full-identifierclj

(kernel-full-identifier ident)
source

kernel-specclj

(kernel-spec dest-jar kernel-id-string)
source

log-messagesclj

(log-messages log)
(log-messages log-levels log)
source

make-signer-checkerclj

(make-signer-checker key)
source

parse-json-strclj

(parse-json-str string)
(parse-json-str string key-fn)
(parse-json-str string key-fn array-coerce-fn)

Returns the Clojure object corresponding to the given JSON-encoded string. An optional key-fn argument can be either true (to coerce keys to keywords), false to leave them as strings, or a function to provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field, and returning the collection to be used for array values.

If the top-level object is an array, it will be parsed lazily (use `parse-strict' if strict parsing is required for top-level arrays.

Returns the Clojure object corresponding to the given JSON-encoded string.
An optional key-fn argument can be either true (to coerce keys to keywords),
false to leave them as strings, or a function to provide custom coercion.

The array-coerce-fn is an optional function taking the name of an array field,
and returning the collection to be used for array values.

If the top-level object is an array, it will be parsed lazily (use
`parse-strict' if strict parsing is required for top-level arrays.
sourceraw docstring

pp-strclj

(pp-str v)
source

re-find+clj

(re-find+ regex-string s)

If regex is a representing a correct regular expression, parsable by re-find, returns the result of applying re-find to the result of applying str to s, otherwise returns nil.

If `regex` is a representing a correct regular expression, parsable by `re-find`, returns the
result of applying `re-find` to the result of applying `str` to `s`, otherwise returns `nil`.
sourceraw docstring

re-pattern+clj

(re-pattern+ regex-string)
source

reformat-formclj

source

resource-pathclj

source

safe-byte-array-to-stringclj

(safe-byte-array-to-string array)
source

sanitize-stringclj

(sanitize-string regex)

Given a string, returns the string with all characters not matching regex removed.

Given a string, returns the string with all characters not matching `regex` removed.
sourceraw docstring

SEGMENT-ORDERclj

source

submap?clj

(submap? submap supermap)

Returns true if all keys in submap map to equal values in supermap, and false otherwise.

Returns `true` if all keys in `submap` map to equal values in `supermap`, and `false` otherwise.
sourceraw docstring

tildeize-filenameclj

(tildeize-filename user-homedir v)
source

to-json-strclj

(to-json-str v)

Returns JSON representation (string) of v.

Returns JSON representation (string) of `v`.
sourceraw docstring

truthy?clj

source

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

× close