Functor Applicative and Monadsby@vijay-aneryae
758 reads

Functor Applicative and Monads

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

I am putting my understanding about functor,Applicative and Monad in Kotlin. I am using Kotlin to explain with examples with examples. A functor is a data structure which acts like a container holding a generic type. Applicative provides abstraction for how to apply a function that takes multiple arguments over multiple values. Functor is useful because they let us use map with collections, replacing for loops. Because Functormap returns another Functor with the result of the function passed to map I can chain multiple map functions together.

Coin Mentioned

Mention Thumbnail
featured image - Functor Applicative and Monads
Vijay Aneraye HackerNoon profile picture

@vijay-aneryae

Vijay Aneraye

Receive Stories from @vijay-aneryae

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa