evilsoft / evilsoft/crocks

Every function that takes an Array should also allow an Iterable

Open
#29 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
1.6k
Forks
103
PR merge metrics
No merged PRs in 30d

Description

So each one of these should also take an Iterable:

### Helpers
- [ ] `mconcat`
- [ ] `mconcatMap`
- [ ] `mreduce`
- [ ] `mreduceMap`
- [ ] `take` **(new)**

## Pointfree
- [ ] `filter`
- [ ] `find` **(new)**
- [x] `head`
- [ ] `map`
- [ ] `reduce`
- [ ] `sequence`
- [ ] `tail`
- [ ] `traverse`

Since we are now exposing the possibility of infinite values, makes sense to add a `take` function at this point.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.