mobily / ts-belt

🔧 Fast, modern, and practical utility library for FP in TypeScript.
https://mobily.github.io/ts-belt
MIT License
1.11k stars 31 forks source link

Curry? (feature request) #24

Closed Darkle closed 2 years ago

Darkle commented 2 years ago

Hi, I think it would be good to have a curry function in the function api if possible.

Cheers.

mobily commented 2 years ago

thanks for the suggestion ❤️ I will take this into consideration in the future, however, at this point, due to weak type inference in TS I’m not planning to implement currying

leohxj commented 2 years ago

Purify have curry but no pipe/flow they said:

There is no such function in purify! Unfortunately it's not possible to provide a type-safe version of compose and friends, so until TypeScript allows us to do that purify will not have them.

ts-belt have pipe/flow but no curry.

Maybe purify fix the weak type in TS, Can we implement a same one?