Liking cljdoc? Tell your friends :D

com.fulcrologic.fulcro.algorithms.misc

Some misc. utility functions. These are primarily meant for internal use, and are subject to relocation in the future.

Some misc. utility functions. These are primarily meant for internal use, and are subject to relocation in the
future.
raw docstring

atom?clj/s

(atom? a)
source

conform!clj/s

(conform! spec x)
source

deep-mergeclj/s

(deep-merge & xs)
source

destructured-keysclj/s

(destructured-keys m)

Calculates the keys that are being extracted in a legal map destructuring expression.

  • m: A map containing legal CLJ destructurings, like {:keys [a] x :x ::keys [y]}

Returns a set of all keywords that are destructured in the map.

Example:

(destructured-keys {:a/keys [v] sym :other-key}) => #{:a/v :other-key}
Calculates the keys that are being extracted in a legal map destructuring expression.

- `m`: A map containing legal CLJ destructurings, like `{:keys [a] x :x ::keys [y]}`

Returns a set of all keywords that are destructured in the map.

Example:

```
(destructured-keys {:a/keys [v] sym :other-key}) => #{:a/v :other-key}
```
sourceraw docstring

elide-ast-nodesclj/s

(elide-ast-nodes {:keys [key union-key children] :as ast} elision-predicate)

Remove items from a query (AST) that have a key that returns true for the elision-predicate

Remove items from a query (AST) that have a key that returns true for the elision-predicate
sourceraw docstring

elide-query-nodesclj/s

(elide-query-nodes query node-predicate)

Remove items from a query when the query element where the (node-predicate key) returns true. Commonly used with a set as a predicate to elide specific well-known UI-only paths.

Remove items from a query when the query element where the (node-predicate key) returns true. Commonly used with
a set as a predicate to elide specific well-known UI-only paths.
sourceraw docstring

force-childrenclj/s

(force-children x)
source

isogetclj/s

(isoget obj k)
(isoget obj k default)
source

isoget-inclj/s

(isoget-in obj kvs)
(isoget-in obj kvs default)
source

join-entryclj/s

(join-entry expr)
source

join-keyclj/s

(join-key expr)
source

join-valueclj/s

(join-value join)
source

join?clj/s

(join? x)
source

mutation-join?clj/s

(mutation-join? expr)
source

nowclj/s

(now)

Returns current time in ms.

Returns current time in ms.
sourceraw docstring

recursion?clj/s

(recursion? x)
source

union?clj/s

(union? expr)
source

uuidclj/s≠

clj
(uuid)
(uuid n)
cljs
(uuid)
(uuid & args)
source

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

× close