cujojs / most

Ultra-high performance reactive programming
MIT License
3.49k stars 231 forks source link

feat(most): curry the public functional API #357

Closed TylorS closed 7 years ago

TylorS commented 7 years ago

Re-exports all of the 2/3 non-variable argument functions from our current functional API

TylorS commented 7 years ago

Closes #20

joaomilho commented 7 years ago

Is there any plan to have this for real? Being unable to compose/pipe in a simple way is uncool. I was just trying most on top of some React code and stumbled upon the fact that I can't do...

pipe(
   ...
   delay(2000),
   ...
)

having to do this instead:

pipe(
   ...
   (s) => delay(2000, s),
   ...
)
TylorS commented 7 years ago

We're working on the next version of most @most/core where everything is curried. No ETA yet, but this repo will be rewritten on top of it when it's ready.

briancavalier commented 7 years ago

@joaomilho Please do feel free to try out @most/core. It's pretty solid already, and feedback is welcome. There may still be breaking changes before 1.0, so just don't use it for production :)

briancavalier commented 7 years ago

Closing, as this is done in @most/core, as @TylorS mentioned.