Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pointfree Pair to array (pairToArray) function #543

Open
kierans opened this issue Jan 10, 2023 · 0 comments
Open

Add pointfree Pair to array (pairToArray) function #543

kierans opened this issue Jan 10, 2023 · 0 comments

Comments

@kierans
Copy link

kierans commented Jan 10, 2023

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 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 😄

@kierans kierans changed the title Add pointfree Pair to array function Add pointfree Pair to array (pairToArray) function Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant