Liking cljdoc? Tell your friends :D

advent-utils.core


count-ifclj

(count-if coll pred)

Find the count of items in coll that satisfy predicate pred

Find the count of items in coll that satisfy predicate pred
sourceraw docstring

fmapclj

(fmap f m)

Applies the function f to the values of the map m

Applies the function f to the values of the map m
sourceraw docstring

index-ofclj

(index-of x coll)

Find the index position of x within coll. Only returns the first match, even when there are multiple matches

Find the index position of x within coll. Only returns the
first match, even when there are multiple matches
sourceraw docstring

invert-mapclj

(invert-map m)

Swap keys and values for map m

Swap keys and values for map m
sourceraw docstring

kmapclj

(kmap f m)

Applies the function f to the keys of the map m

Applies the function f to the keys of the map m
sourceraw docstring

puzzle-inputclj

(puzzle-input filename)

Load a puzzle input (from the resources directory in your project) as a seq, with each line in the input as an element in the seq

Load a puzzle input (from the resources directory in your project) as
a seq, with each line in the input as an element in the seq
sourceraw docstring

rotateclj

(rotate n coll)

Rotate the collection by n. Positive values of n rotate to the left, meaning that values are taken from the beginning of coll and moved to the end. Negative values of n rotate to the right, meaning values are taken from the end of coll and moved to the front

Rotate the collection by n. Positive values of n rotate to the left,
meaning that values are taken from the beginning of coll and moved to
the end.  Negative values of n rotate to the right, meaning values
are taken from the end of coll and moved to the front
sourceraw docstring

without-keysclj

(without-keys map keyseq)

Returns a map with only the entries in map whose key isn't in keyseq

Returns a map with only the entries in map whose key isn't in keyseq
sourceraw docstring

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

× close