How Does The Maybe Monad Relate To The Option Type?

Posted by Onorio Catenacci on Programmers See other posts from Programmers or by Onorio Catenacci
Published on 2012-06-22T13:15:52Z Indexed on 2012/06/22 15:24 UTC
Read the original article Hit count: 277

I was doing a presentation on F# and was discussing the Option type when someone in the audience asked me if the Option type is F#'s implementation of the maybe monad. I know that's not the case but I did want to ask how the two concepts are related. I mean it seems to me that an option type might be the result of the operation of a maybe monad but I'm not even sure of that.

Would someone elucidate the relationship between the maybe monad and the option type in those functional languages which support it?

© Programmers or respective owner

Related posts about functional-programming

Related posts about monad