(find-all-indexes-in-vec pred v)
Gets the index of all items in vec that match the predicate
Gets the index of all items in vec that match the predicate
(find-index-in-vec pred v)
Gets the index of the first item in vec that matches the predicate
Gets the index of the first item in vec that matches the predicate
(id-between-xf beginning ending)
Returns a transducer that filters for :id between beginning and ending.
Returns a transducer that filters for :id between beginning and ending.
(last-in-vec v)
Get the last element in the vector. Returns nil if v is empty
Get the last element in the vector. Returns nil if v is empty
(pluralize num singular & [plural])
Return a pluralized phrase, appending an s to the singular form if no plural is provided. For example: (pluralize 5 "month") => "5 months" (pluralize 1 "month") => "1 month" (pluralize 1 "radius" "radii") => "1 radius" (pluralize 9 "radius" "radii") => "9 radii" From https://github.com/flatland/useful/blob/194950/src/flatland/useful/string.clj#L25-L33
Return a pluralized phrase, appending an s to the singular form if no plural is provided. For example: (pluralize 5 "month") => "5 months" (pluralize 1 "month") => "1 month" (pluralize 1 "radius" "radii") => "1 radius" (pluralize 9 "radius" "radii") => "9 radii" From https://github.com/flatland/useful/blob/194950/src/flatland/useful/string.clj#L25-L33
(pluralize- num singular & [plural])
Same as pluralize, but doesn't prepend the number to the pluralized string.
Same as pluralize, but doesn't prepend the number to the pluralized string.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close