Liking cljdoc? Tell your friends :D

naga.util

The ubiquitous utility namespace that every project seems to have

The ubiquitous utility namespace that every project seems to have
raw docstring

divide'clj/s

(divide' p s)

Inputs: [p s :- [s/Any]] Returns: [[s/Any] [s/Any]]

Takes a predicate and a sequence and returns 2 sequences. The first is where the predicate returns true, and the second is where the predicate returns false. Note that a nil value will not be returned in either sequence, regardless of the value returned by the predicate.

Inputs: [p s :- [s/Any]]
Returns: [[s/Any] [s/Any]]

Takes a predicate and a sequence and returns 2 sequences.
 The first is where the predicate returns true, and the second
 is where the predicate returns false. Note that a nil value
 will not be returned in either sequence, regardless of the
 value returned by the predicate.
sourceraw docstring

fixpointclj/s

(fixpoint f a)

Applies the function f to the value a. The function is then, and applied to the result, over and over, until the result does not change. Returns the final result. Note: If the function has no fixpoint, then runs forever.

Applies the function f to the value a. The function is then,
and applied to the result, over and over, until the result does not change.
Returns the final result.
Note: If the function has no fixpoint, then runs forever.
sourceraw docstring

get-fn-referenceclj/s≠

(get-fn-reference kw)
clj

Inputs: [kw :- (s/cond-pre s/Keyword s/Symbol)] Returns: (s/maybe Var)

Looks up a namespace:name function represented in a keyword, and if it exists, return it. Otherwise nil

Inputs: [kw :- (s/cond-pre s/Keyword s/Symbol)]
Returns: (s/maybe Var)

Looks up a namespace:name function represented in a keyword,
 and if it exists, return it. Otherwise nil
cljs

Inputs: [kw :- (s/cond-pre s/Keyword s/Symbol)] Returns: (s/maybe Var)

Looks up a namespace:name function represented in a keyword, and if it exists, return it. Otherwise nil

Inputs: [kw :- (s/cond-pre s/Keyword s/Symbol)]
Returns: (s/maybe Var)

Looks up a namespace:name function represented in a keyword,
    and if it exists, return it. Otherwise nil
source (clj)source (cljs)raw docstring

mapmapclj/s≠

clj
(mapmap valfn s)
(mapmap keyfn valfn s)

Inputs: ([valfn :- (=> s/Any s/Any) s :- [s/Any]] [keyfn :- (=> s/Any s/Any) valfn :- (=> s/Any s/Any) s :- [s/Any]]) Returns: #:s{Any s/Any}

Creates a map from functions applied to a seq. (map (partial * 2) [1 2 3 4 5]) => {1 2, 2 4, 3 6, 4 8, 5 10} (map #(keyword (str "k" (dec %))) (partial * 3) [1 2 3]) => {:k0 3, :k1 6, :k2 9}

Inputs: ([valfn :- (=> s/Any s/Any) s :- [s/Any]] [keyfn :- (=> s/Any s/Any) valfn :- (=> s/Any s/Any) s :- [s/Any]])
Returns: #:s{Any s/Any}

Creates a map from functions applied to a seq.
 (map (partial * 2) [1 2 3 4 5])
   => {1 2, 2 4, 3 6, 4 8, 5 10}
 (map #(keyword (str "k" (dec %))) (partial * 3) [1 2 3])
   => {:k0 3, :k1 6, :k2 9}
cljs
(mapmap G__1375 G__1376)
(mapmap G__1380 G__1381 G__1382)

Inputs: ([valfn :- (=> s/Any s/Any) s :- [s/Any]] [keyfn :- (=> s/Any s/Any) valfn :- (=> s/Any s/Any) s :- [s/Any]]) Returns: {s/Any s/Any}

Creates a map from functions applied to a seq. (map (partial * 2) [1 2 3 4 5]) => {1 2, 2 4, 3 6, 4 8, 5 10} (map #(keyword (str "k" (dec %))) (partial * 3) [1 2 3]) => {:k0 3, :k1 6, :k2 9}

Inputs: ([valfn :- (=> s/Any s/Any) s :- [s/Any]] [keyfn :- (=> s/Any s/Any) valfn :- (=> s/Any s/Any) s :- [s/Any]])
Returns: {s/Any s/Any}

Creates a map from functions applied to a seq.
 (map (partial * 2) [1 2 3 4 5])
   => {1 2, 2 4, 3 6, 4 8, 5 10}
 (map #(keyword (str "k" (dec %))) (partial * 3) [1 2 3])
   => {:k0 3, :k1 6, :k2 9}
sourceraw docstring

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

× close