An open API service indexing awesome lists of open source software.

https://github.com/diegovdc/trd

A function for composing, inspired by Clojure's thread macro.
https://github.com/diegovdc/trd

clojure functional-programming thread-macro

Last synced: 5 months ago
JSON representation

A function for composing, inspired by Clojure's thread macro.

Awesome Lists containing this project

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
```