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 curry function #96

Closed
TomokiMiyauci opened this issue Jun 11, 2021 · 2 comments
Closed

Add curry function #96

TomokiMiyauci opened this issue Jun 11, 2021 · 2 comments
Labels

Comments

@TomokiMiyauci
Copy link
Owner

TomokiMiyauci commented Jun 11, 2021

 const replace = (from: string, to: string, val: string) => val.replace(from, to)
 const curriedReplace = curry(replace)
 const curriedReplace('hello', 'hi', 'hello world') // 'hi world'
 const curriedReplace('hello')('hi', 'hello world') // 'hi world'
 const curriedReplace('hello')('hi')('hello world') // 'hi world'
@TomokiMiyauci TomokiMiyauci added the enhancement New feature or request label Jun 11, 2021
github-actions bot pushed a commit that referenced this issue Jun 12, 2021
# [v1.9.0-beta.6](v1.9.0-beta.5...v1.9.0-beta.6) (2021-06-12)

## ✨ New Features
- [`1091e30`](1091e30)   Add curry function (Issues: [`#96`](#96))

## 🐛 Bug Fixes
- [`5683d6a`](5683d6a)   Fix types of length function
@TomokiMiyauci
Copy link
Owner Author

🎉 This issue has been resolved in version 1.9.0-beta.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Jun 27, 2021
# [v1.9.0](v1.8.1...v1.9.0) (2021-06-27)

## ✨ New Features
- [`d4d7080`](d4d7080)   Add tap function and types of Arity1Fn (Issues: [`#80`](#80))
- [`e4ef6b1`](e4ef6b1)   Add test function (Issues: [`#88`](#88))
- [`96d0b34`](96d0b34)   Add curry function limited arity 2
- [`d79d510`](d79d510)   Add includes function (Issues: [`#91`](#91))
- [`1091e30`](1091e30)   Add curry function (Issues: [`#96`](#96))

## 🐛 Bug Fixes
- [`a9891c5`](a9891c5)   Fix types of includes
- [`5683d6a`](5683d6a)   Fix types of length function
@TomokiMiyauci
Copy link
Owner Author

🎉 This issue has been resolved in version 1.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant