Liking cljdoc? Tell your friends :D

swim.utils


?clj/s

(? & args)

aftercljs

(after ms f & args)

Call f asynchronously after ms milliseconds.

Call f asynchronously after ms milliseconds.
raw docstring

alternatingclj/s

(alternating & colls)

Returns a lazy seq of the first item in each coll, then the second etc. Unlike interleave, does not stop early.

Returns a lazy seq of the first item in each coll, then the second etc. Unlike interleave, does
not stop early.
raw docstring

capitalize-nameclj/s

(capitalize-name name)

Capitalize name if it is all lowercase.

Capitalize name if it is all lowercase.
raw docstring

distinct-byclj/s

(distinct-by keyfn coll)

Returns a lazy sequence of the elements of coll with duplicate keys removed.

Returns a lazy sequence of the elements of coll with duplicate keys removed.
raw docstring

eqclj/s

(eq key val)

Returns a predicate that returns true when calling key on item returns val. This will commonly be used with a keyword for key (eq :name name), though that is not required.

Returns a predicate that returns true when calling key on item returns val. This will commonly
be used with a keyword for key (eq :name name), though that is not required.
raw docstring

first-indexclj/s

(first-index vector pred)

Returns the index of the first item in vector that matches pred.

Returns the index of the first item in vector that matches pred.
raw docstring

index-byclj/s

(index-by f coll)

Returns a map from the result of calling f on each item in coll to that item.

Returns a map from the result of calling f on each item in coll to that item.
raw docstring

last-indexclj/s

(last-index vector pred)

Returns the index of the last item in vector that matches pred.

Returns the index of the last item in vector that matches pred.
raw docstring

neqclj/s

(neq key val)

remove-lastclj/s

(remove-last vector pred)

Remove the last item in vector that matches pred.

Remove the last item in vector that matches pred.
raw docstring

removevclj/s

(removev f coll)

replace-firstclj/s

(replace-first vector pred item)

Replace the first item in vector that matches pred with item.

Replace the first item in vector that matches pred with item.
raw docstring

replace-lastclj/s

(replace-last vector pred item)

Replace the last item in vector that matches pred with item.

Replace the last item in vector that matches pred with item.
raw docstring

split-onclj/s

(split-on pred coll)

Split the given collection on the first item for which pred returns true. Returns [head-vector tail-seq]

Split the given collection on the first item for which pred returns true.
Returns [head-vector tail-seq]
raw docstring

truncate-stringclj/s

(truncate-string string num)
(truncate-string string num ellipsis)

truncate-string-on-wordsclj/s

(truncate-string-on-words string num)
(truncate-string-on-words string num ellipsis)

update-eachclj/s

(update-each m keys f)

Adjust values for the given keys in m by calling f. This is painfully similar to useful's update-each, except that it doesn't call the function if the item is missing from the map.

Adjust values for the given keys in m by calling f. This is painfully similar to useful's
update-each, except that it doesn't call the function if the item is missing from the map.
raw docstring

user-initialsclj/s

(user-initials user)

user-nameclj/s

(user-name user)

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

× close