Recycle Api Documentation

Version: 0.1.0-SNAPSHOT

recycle.util

map-second

(map-second f coll)

Receives a function f, a collection coll of two-element vectors, and returns the same collection but with the second element of each vector replaced with the result of calling f with the original second element.

map-values

(map-values f m)

Receives a function f, a map m, and returns the same map but with the values replaced with result of calling f with the original value of each key.

noop

(noop & _)

No-op function. Receives any number of arguments and returns nil.

throwing

(throwing e)

Returns a function of any args that raises exception e when called.