hemanth / functional-programming-jargon

Jargon from the functional programming world in simple terms!
http://git.io/fp-jargons
MIT License
18.61k stars 1.02k forks source link

Fix functor example #240

Closed marcwrobel closed 1 year ago

marcwrobel commented 1 year ago

If f = x => x + 1 and g = x => x * 2, then some(1).map(x => g(f(x))) = g(1 + 1) = (1 + 1) * 2 = 4.

See also #238.