Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvaldesdeleon/capital-c
Magically composable functions!
https://github.com/mvaldesdeleon/capital-c
Last synced: about 6 hours ago
JSON representation
Magically composable functions!
- Host: GitHub
- URL: https://github.com/mvaldesdeleon/capital-c
- Owner: mvaldesdeleon
- License: other
- Created: 2017-06-02T19:57:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-02T20:20:12.000Z (over 7 years ago)
- Last Synced: 2024-11-13T19:11:59.740Z (4 days ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# capital-c
Magically composable functions!
```JS
const C = require('capital-c');let f1 = x => x + 1;
let f2 = x => x * 2;({f1, f2} = C({f1, f2}));
const y = f1.f2.f1.f2.f2.f1;
console.log(y);
console.log(y(2));
// Profit
```# install
with [npm](https://npmjs.org) do:```
npm install capital-c
```# license
MIT