trd
v0.1.1
Published
A function for composing, inspired by Clojure's thread macro.
Downloads
18
Maintainers
Readme
Concept
A function for composing, inspired by Clojure's trd macro.
Usage
//trd :: [arguments_of_the_first_function] -> ((* -> *), ...(*->n)) -> n
const {trd} = require('trd')
trd([5],
(x => x - 1),
(x => x * 2))//8