Liking cljdoc? Tell your friends :D

duckling.util


?>cljmacro

(?> arg do-it? & rest)

Conditional single-arrow operation (-> m (?> add-kv? (assoc :k :v)))

Conditional single-arrow operation (-> m (?> add-kv? (assoc :k :v)))
sourceraw docstring

?>>cljmacro

(?>> do-it? & args)

Conditional double-arrow operation (->> nums (?>> inc-all? (map inc)))

Conditional double-arrow operation (->> nums (?>> inc-all? (map inc)))
sourceraw docstring

compare-intervalsclj

(compare-intervals [a b] [c d])

Compares two intervals. i1 > i2 if i1 recovers i2.

Compares two intervals. i1 > i2 if i1 recovers i2.
sourceraw docstring

hash-matchclj

(hash-match pattern input)

Matching hashmap over hashmap. Keys can be functions. WARNING THIS IS NOT RECURSIVE FOR THE MOMENT

Matching hashmap over hashmap. Keys can be functions.
WARNING THIS IS NOT RECURSIVE FOR THE MOMENT
sourceraw docstring

keep-maxclj

(keep-max fmax coll)

Returns the sublist of elem for which f is maxed

Returns the sublist of elem for which f is maxed
sourceraw docstring

merge-according-toclj

(merge-according-to fn-map & maps)

Merges a list of maps from left to right. When 2 conflicting keys are found, lookup the merging function to use. If the merging function can't be found, right (new) value is used. Merging functions are called as (f left right).

Merges a list of maps from left to right.
When 2 conflicting keys are found, lookup the merging function to use.
If the merging function can't be found, right (new) value is used.
Merging functions are called as (f left right).
sourceraw docstring

separated-substring?clj

(separated-substring? sentence pos end)

Since we match regexes without whitespace delimitator, we have to check the reasonability of the match to actually be a word January19this is my birthday => OK Cameroun (as Camero + 'un') => NOT OK

Since we match regexes without whitespace delimitator, we have to check
the reasonability of the match to actually be a word
January19this is my birthday => OK
Cameroun (as Camero + 'un') => NOT OK
sourceraw docstring

split-by-partial-maxclj

(split-by-partial-max partial-order-fn coll base-coll)

Splits coll into two colls. The first one contains the items in coll that do not have any elem greater than them in base-coll according the given partial order function. The second contains the other items in coll. (When the partial order returns nil, it means the 2 elems cannot be compared.)

Splits coll into two colls. The first one contains the items in coll that do
not have any elem greater than them in base-coll according the given partial
order function. The second contains the other items in coll.
(When the partial order returns nil, it means the 2 elems
cannot be compared.)
sourceraw docstring

spprintclj

(spprint m)

Pretty-prints to a string (useful to print hashmaps)

Pretty-prints to a string (useful to print hashmaps)
sourceraw docstring

valid-limit?clj

(valid-limit? char1 char2)

Decide if two adjacent chars are reasonably separated ab => false aR => true a1 => true -) => true etc.

Decide if two adjacent chars are reasonably separated
ab => false
aR => true
a1 => true
-) => true etc.
sourceraw docstring

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

× close