Functional programming utility functions
Functional programming utility functions
(ajuxt f)(ajuxt f g)(ajuxt f g h)(ajuxt f g h & fs)Like juxt combined with apply. Takes a set of functions, and returns a function of the same arity as the number of functions that will call each function with the arg that matches it positionally, and return a vector of the results.
((ajuxt a b) x y) => [(a x) (b y)]
Like juxt combined with apply. Takes a set of functions, and returns a function of the same arity as the number of functions that will call each function with the arg that matches it positionally, and return a vector of the results. ((ajuxt a b) x y) => [(a x) (b y)]
(cond-let & clauses)Like cond, but each test should be in the form of [binding test]. If test evaluates logical true, then the associated binding will be available in the corresponding expression.
Like cond, but each test should be in the form of [binding test]. If test evaluates logical true, then the associated binding will be available in the corresponding expression.
(cond-let-> expr & clauses)Like cond->, but each test should be in the form of [binding test]. If test evaluates logical true, then the associated binding will be available in the corresponding expression.
Like cond->, but each test should be in the form of [binding test]. If test evaluates logical true, then the associated binding will be available in the corresponding expression.
(cond-let->> expr & clauses)Like cond->>, but each test should be in the form of [binding test]. If test evaluates logical true, then the associated binding will be available in the corresponding expression.
Like cond->>, but each test should be in the form of [binding test]. If test evaluates logical true, then the associated binding will be available in the corresponding expression.
(get-in* m ks)Faster version of get-in as a macro. Does not support default value.
Faster version of get-in as a macro. Does not support default value.
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 |