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 fp export #564

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add fp export #564

wants to merge 1 commit into from

Conversation

seungrodotlee
Copy link
Contributor

Add es-toolkit/fp export to support functional programming and pipeline syntax.

// example

pipe(
  [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
  filter(isEven),
  map(double),
  join(", "),
) // Expect: "4, 8, 12, 16, 20"

TODO

Scripts

  • Write a script to clone and convert existing functions into 'pipable' functions for pipelining.
  • Enhance a script to clone and convert existing specs to fp-version specs.

Codes

  • Write basic functions for fp (ex. pipe, map, filter ...)
  • Convert all available existing functions

Documents

  • Write documents about es-toolkit/fp

Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
es-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 6:04pm

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

Successfully merging this pull request may close these issues.

1 participant