evilsoft / evilsoft/crocks

Add pointfree Pair to array (pairToArray) function

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

Description

**Is your feature request related to a problem? Please describe.**

Most other Monads have a pointfree version of the `toArray` method.
- `List` -> `listToArray`
- `Tuple` -> `tupleToArray`

However there is no `pairToArray` function

**Describe the solution you'd like**
A `pairToArray` function

**Describe alternatives for how you do this now**

`(p) => p.toArray()`

**Code**
Do you have example code or tests in a [Repl](http://repl.it/languages/babel) for what you'd like added?

**Additional context**
Add any other context or screenshots about the feature request here.

I'm happy to give implementing this a go if the maintainers think it's worthwhile/will actually merge the changes 😄

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.