Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weaming/math-fold
Bring fold in functional programming to CLI.
https://github.com/weaming/math-fold
cli fold functional-programming
Last synced: 3 days ago
JSON representation
Bring fold in functional programming to CLI.
- Host: GitHub
- URL: https://github.com/weaming/math-fold
- Owner: weaming
- Created: 2018-10-03T08:23:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-03T09:12:13.000Z (about 6 years ago)
- Last Synced: 2024-11-09T17:19:09.640Z (7 days ago)
- Topics: cli, fold, functional-programming
- Language: Python
- Homepage:
- Size: 92.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Math Fold
Bring **fold** in functional programming to CLI.
`pip3 install math-fold`
## Usage Example
```
$ cat r.txt | calculate 'lambda a, b: a+b+3'
82
$ cat r.txt | calculate 'min'
1
$ cat r.txt | calculate 'max'
10
$ cat r.txt | calculate 'mean'
9.001953125
```