Liking cljdoc? Tell your friends :D

had-utils.core


flip-argsclj

(flip-args f)

Given a function f that takes at least two arguments returns a new function that reverses the order of the first two arguments

Given a function `f` that takes at least two arguments
returns a new function that reverses the order of
the first two arguments
sourceraw docstring

iterate-untilclj

(iterate-until f x pred)

Iterate one argument function f on starting value x and return the first iterate that makes pred true.

Iterate one argument function `f` on starting value `x`
and return the first iterate that makes `pred` true.
sourceraw docstring

reverse-argsclj

(reverse-args f)

Given a function f returns a new function that takes its arguments in the reverse order.

Given a function `f` returns a new function that takes its
arguments in the reverse order.
sourceraw docstring

step-state-on-inputclj

(step-state-on-input initial-state step-f input-seq)

Take an initial-state, a function step-f that produces a new state based on a current state and piece of input, and a sequence of input input-seq and return the final state after stepping over all the input.

Take an `initial-state`, a function `step-f` that
produces a new state based on a current state and
piece of input, and a sequence of input `input-seq`
and return the final state after stepping over all
the input.
sourceraw docstring

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

× close