Liking cljdoc? Tell your friends :D

hxgm30.common.util


deep-mergeclj

(deep-merge & maps)

Merge maps recursively.

Merge maps recursively.
sourceraw docstring

frequencies->percent-rangesclj

(frequencies->percent-ranges freqs)

Create a lookup of key/value pairs where the key is the range of percentages where a syllable count occurs, and the value is the syllable count.

Create a lookup of key/value pairs where the key is the range of percentages
where a syllable count occurs, and the value is the syllable count.
sourceraw docstring

frequency->percent-rangeclj

(frequency->percent-range total acc [k v])

A reducer that, given a frequency and an accumulator, returns an updated accumulator with the given frequency converted to a percent range (appended to the accumulator). The first argument is expected to be provided as a partial.

A reducer that, given a frequency and an accumulator, returns an updated
accumulator with the given frequency converted to a percent range (appended
to the accumulator). The first argument is expected to be provided as a
partial.
sourceraw docstring

import-classclj

(import-class package-and-class)
source

keys->strsclj

(keys->strs m)

Recursively transforms all map keys from keywords to strings.

Recursively transforms all map keys from keywords to strings.
sourceraw docstring

list->mapclj

(list->map items)

Given a flat list of pairs, convert them to a map.

Given a flat list of pairs, convert them to a map.
sourceraw docstring

percent->clj

(percent-> percent percent-ranges)

Given a percent (as a float between 0.0 and 1.0) and a lookup table of percent ranges, find the range in which the given percent falls, and return the associated value.

Given a percent (as a float between 0.0 and 1.0) and a lookup table of
percent ranges, find the range in which the given percent falls, and return
the associated value.
sourceraw docstring

require-nsclj

(require-ns an-ns)
source

tuple->mapclj

(tuple->map tuple)
source

tuple?clj

(tuple? data)
source

tuples->mapclj

(tuples->map tuples)
source

wrap-paragraphclj

(wrap-paragraph text width indent)
source

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

× close