(begins-with? substring string)Clojure.string/starts-with? with reversed argument order
Clojure.string/starts-with? with reversed argument order
(coll-contains? needle haystack)(deep-merge & vals)Recursively merges maps. If keys are not maps, the last value wins.
Recursively merges maps. If keys are not maps, the last value wins.
(drop-nth n coll)Drop a value from a collection at a specific index
Drop a value from a collection at a specific index
(first-letter letters)(flip-presence m k)If a key is present in a map then remove it, otherwise add the key with a value of true.
If a key is present in a map then remove it, otherwise add the key with a value of true.
(haystack-has? haystack needle)(index pred coll)Given a predicate and a collection, find the index of the first truthy value (index (partial = :b) [:a :b :c]) => 1 (index #(clojure.string/sarts-with? % xyz) [abc1 def2 xyz3]) => 2
Given a predicate and a collection, find the index of the first truthy value (index (partial = :b) [:a :b :c]) => 1 (index #(clojure.string/sarts-with? % xyz) [abc1 def2 xyz3]) => 2
(index-map results offset)(insert-nth coll n item)Insert a value into a collection at a specifix
Insert a value into a collection at a specifix
(move-nth coll from-idx to-idx)Shift an item from one index in a collection to another
Shift an item from one index in a collection to another
(summary-query {:keys [class id summary-fields]})(swap coll index-a index-b)Given a collection, swap the positions of elements at index-a and index-b with eachother
Given a collection, swap the positions of elements at index-a and index-b with eachother
(toggle-into-set haystack needle)(without coll item)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |