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.
- Host: GitHub
- URL: https://github.com/diegovdc/trd
- Owner: diegovdc
- Created: 2017-11-09T04:08:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T06:20:57.000Z (over 8 years ago)
- Last Synced: 2024-08-09T11:16:03.479Z (over 1 year ago)
- Topics: clojure, functional-programming, thread-macro
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```