Liking cljdoc? Tell your friends :D

Mostly clj/s.

Exceptions indicated.

Exceptions indicated.

`(** & lenses)`

Return the product of several lenses, which means that each lens is held over an element of a collection in the order they appear in the argument list.

Return the product of several lenses, which means that each lens is held over an element of a collection in the order they appear in the argument list.

`(++ & lenses)`

Returns a lens over some data structure that shows a sequence of elements that each of the given lenses show on that. Note that the behaviour is undefined if those lenses do not show distrinct parts of the data structure.

Returns a lens over some data structure that shows a sequence of elements that each of the given lenses show on that. Note that the behaviour is undefined if those lenses do not show distrinct parts of the data structure.

`(>> l1 & lmore)`

Returns a concatenation of two or more lenses, so that the combination shows the value of the last one, in a data structure that the first one is put over.

Returns a concatenation of two or more lenses, so that the combination shows the value of the last one, in a data structure that the first one is put over.

A lens that views a sequence of pairs as a map.

A lens that views a sequence of pairs as a map.

A lens that views a sequence as a set.

A lens that views a sequence as a set.

`(at-index n)`

Returns a lens that focuses on the value at position n in a sequence. The sequence must have >= n elements.

Returns a lens that focuses on the value at position n in a sequence. The sequence must have >= n elements.

`(contains v)`

Returns a lens showing the membership of the given value in a set.

Returns a lens showing the membership of the given value in a set.

`(default dflt)`

Returns a lens that shows nil as the given default value, but does not change any other value.

Returns a lens that shows nil as the given default value, but does not change any other value.

A lens focusing on the first element in a collection. It yanks nil if the collection is empty, and will not insert nil into an empty collection.

A lens focusing on the first element in a collection. It yanks nil if the collection is empty, and will not insert nil into an empty collection.

Identity lens, that just show a data structure as it is. It's also the neutral element of lens concatenation reacl.lens/>>.

Identity lens, that just show a data structure as it is. It's also the neutral element of lens concatenation reacl.lens/>>.

`(is v)`

Returns a lens showing if a data structure equals the non-nil value v.

Returns a lens showing if a data structure equals the non-nil value v.

`(lens yank shove & args)`

Returns a new lens defined by the given yanker function, which takes a data structure and must return the focused value, and the given shover function which takes a data structure and the new value in the focus. Any additional arguments are passed unchanged to the yank and shove functions.

Returns a new lens defined by the given yanker function, which takes a data structure and must return the focused value, and the given shover function which takes a data structure and the new value in the focus. Any additional arguments are passed unchanged to the yank and shove functions.

`(member key & [not-found])`

Returns a lens showing the value mapped to the given key in a map, not-found or nil if key is not present. Note that when not-found (or nil) is shoved into the map, the association is removed.

Returns a lens showing the value mapped to the given key in a map, not-found or nil if key is not present. Note that when not-found (or nil) is shoved into the map, the association is removed.

A lens focusing on the first element in a non-empty collection. Behaviour on an empty collection is undefined.

A lens focusing on the first element in a non-empty collection. Behaviour on an empty collection is undefined.

A lens focusing on the all but the first element in a non-empty collection. Behaviour on an empty collection is undefined.

A lens focusing on the all but the first element in a non-empty collection. Behaviour on an empty collection is undefined.

`(overhaul data lens f)`

`(overhaul data lens f & args)`

Updates data using a lens. The new value will be determined by
applying `f`

to the old value and any other supplied arguments.

Updates data using a lens. The new value will be determined by applying `f` to the old value and any other supplied arguments.

`(pos n)`

A lens over the nth element in a collection. Note that when shoving a new value nils may be added before the given position, if the the collection is smaller.

A lens over the nth element in a collection. Note that when shoving a new value nils may be added before the given position, if the the collection is smaller.

`(shove data lens v)`

Shove a new value v into the given data value, as defined by the given lens, and return the updated data structure.

Shove a new value v into the given data value, as defined by the given lens, and return the updated data structure.

A lens focusing on the all but the first element in a collection. Note that nil will be prepended when shoving into an empty collection.

A lens focusing on the all but the first element in a collection. Note that nil will be prepended when shoving into an empty collection.

A trivial lens that just shows nil over anything, and does never change anything.

A trivial lens that just shows nil over anything, and does never change anything.

`(xmap f g & args)`

Returns a "view lens", that transforms a whole data structure to something else (f) and back (g).

Returns a "view lens", that transforms a whole data structure to something else (f) and back (g).

`(yank data lens)`

Yank a value from the given data value, as defined by the given lens.

Yank a value from the given data value, as defined by the given lens.

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