it-vecherka / jnoid

Javascript functional reactive programming library
http://it-vecherka.github.io/jnoid/
MIT License
8 stars 4 forks source link

Export useful helper functions for point-free style programming #18

Open dmitriy-kiriyenko opened 11 years ago

dmitriy-kiriyenko commented 11 years ago

Which are:

curry(f, a, b, c) # (x)-> f(a, b, c, x)
apply(obj, 'f', a, b, c)) # (x)-> obj.f(a, b, c, x)
method('f', a, b, c)) # (x)-> x.f(a, b, c)
pluck('prop') # (x)-> x.prop
compose(f, g, h) # (x) -> f(g(h(x)))
pipe(f, g, h) # (x) -> h(g(f(x)
flip(f) # (a, b)-> f(b, a)
id(x) # (x)-> x
const(x) # (x)-> -> x
nop(x) # ->
aratak commented 10 years ago
callWith(a, b, c) # (x)-> x(a,b,c)

Think about better name