Internal utility functions used by other namespaces.
Internal utility functions used by other namespaces.
(arg-coll args)
Returns a collection from the arguments provided. If args
is a
non-collection value, a single-element collection containing args
is
returned.
Returns a collection from the arguments provided. If `args` is a non-collection value, a single-element collection containing `args` is returned.
(arg-map args)
Takes a sequence of args and returns a map. If only one argument is given and it is a map, it is retured directly. Otherwise the seq of args is treated as keyword args and returned as a map.
Takes a sequence of args and returns a map. If only one argument is given and it is a map, it is retured directly. Otherwise the seq of args is treated as keyword args and returned as a map.
(arg-seq args)
Takes a sequence of args and returns a seq. If only one argument is given and it is sequential, it is retured directly. Otherwise the seq of args is returned. Returns nil for empty args.
Takes a sequence of args and returns a seq. If only one argument is given and it is sequential, it is retured directly. Otherwise the seq of args is returned. Returns nil for empty args.
(preserving-reduced rf)
Returns a reducing function that double-wraps reduced values so that nested reductions properly halt an outer reduction.
Adapted from clojure.core
, which declares it as private.
Returns a reducing function that double-wraps reduced values so that nested reductions properly halt an outer reduction. Adapted from `clojure.core`, which declares it as private.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close