barbiturat
7/15/2017 - 7:00 AM

difference between chain and ap

difference between chain and ap

chain(concat, toUpper)('a') // => "Aa"
ap(concat, toUpper)('a') // => "aA"

// chain = k => f => r => k(f(r))(r)
// ap = k => f => r => k(r)(f(r))