Liking cljdoc? Tell your friends :D

re-frame.utils


apply-kwclj/s

(apply-kw f & args)

Like apply, but f takes keyword arguments and the last argument is not a seq but a map with the arguments for f

Like apply, but f takes keyword arguments and the last argument is
not a seq but a map with the arguments for f
sourceraw docstring

deep-dissocclj/s

(deep-dissoc m path)

Dissoces the map entry at the path, then recurs through the ancestors, dissocing each ancestor until one is found with a descendent outside the path.

(deep-dissoc {:a {:b {:c {:d 1}}}}
             [:a :b :c :d])

This yields an empty map, since each node has a sole descendant.

(deep-dissoc {:a {:x 2 :b {:c {:d 1}}}}
             [:a :b :c :d])

This yields {:a {:x 2}}, since :a has a descendent :x outside the path.

Dissoces the map entry at the path, then recurs through the ancestors,
dissocing each ancestor until one is found with a descendent outside the path.

```
(deep-dissoc {:a {:b {:c {:d 1}}}}
             [:a :b :c :d])
```

This yields an empty map, since each node has a sole descendant.

```
(deep-dissoc {:a {:x 2 :b {:c {:d 1}}}}
             [:a :b :c :d])
```

This yields `{:a {:x 2}}`, since `:a` has a descendent `:x` outside the path.
sourceraw docstring

dissoc-inclj/s

(dissoc-in m [k & ks :as keys])

Dissociates an entry from a nested associative structure returning a new nested structure. keys is a sequence of keys. Any empty maps that result will not be present in the new structure. The key thing is that 'm' remains identical? to itself if the path was never present

Dissociates an entry from a nested associative structure returning a new
nested structure. keys is a sequence of keys. Any empty maps that result
will not be present in the new structure.
The key thing is that 'm' remains identical? to itself if the path was never present
sourceraw docstring

find-cycleclj/s

(find-cycle graph visited node)
source

first-in-vectorclj/s

(first-in-vector v)
source

map-valsclj/s

(map-vals f m)
source

remove-orphansclj/s

(remove-orphans graph)
source

safe-update-inclj/s

(safe-update-in m path f & args)
source

topsort-kahnclj/s

(topsort-kahn graph)
source

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

× close