Liking cljdoc? Tell your friends :D

automaton-core.utils.sequences

Manipulation of sequences

Manipulation of sequences
raw docstring

index-ofclj/s

(index-of coll pred)

Find the position of x, the first occurence matching(x) in coll.

Returns its position Params:

  • coll collection to search in
  • pred pred is a function returning true when called on the element to return the sequence of
Find the position of x, the first occurence matching(x) in coll.

Returns its position
 Params:
* `coll` collection to search in
* `pred` pred is a function returning true when called on the element to return the sequence of
raw docstring

trim-leading-nilclj/s

(trim-leading-nil aseq)
(trim-leading-nil aseq nil-fn)

Remove nil values at the end of a sequence Params:

  • aseq a sequence which will be tested starting from the end
  • nil-fn is the function to test nullity, (defaulted to nil?)
Remove nil values at the end of a sequence
Params:
* `aseq` a sequence which will be tested starting from the end
* `nil-fn` is the function to test nullity, (defaulted to `nil?`)
raw docstring

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

× close