trd

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i trd

Weekly Downloads

19

Version

0.1.1

License

ISC

Last publish

Collaborators

  • diegovdc