Option-Maybe

Back to Monads & Functors

A monad representing a value that may or may not exist. Option (Rust/Scala) or Maybe (Haskell) replaces null references with an explicit type: Some(value) or None. Forces handling of the absence case, eliminating null pointer exceptions.

programming-paradigms functional option maybe