paint-brush
Functor Applicative and Monadsby@vijay-aneryae
826 reads
826 reads

Functor Applicative and Monads

by Vijay Aneraye6mDecember 29th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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 Aneraye

Vijay Aneraye

@vijay-aneryae

L O A D I N G
. . . comments & more!

About Author

Vijay Aneraye HackerNoon profile picture
Vijay Aneraye@vijay-aneryae

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Clojure
Email-database