(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
(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.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |