/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

jobjo.github.io
| | blog.shaynefletcher.org
3.5 parsecs away

Travel
| | More type classes in OCaml More type classes Author: Joel Björnson About the author: Joel has been enjoying functional programming ...
| | blog.sigfpe.com
6.9 parsecs away

Travel
| |
| | rachelcarmena.github.io
5.9 parsecs away

Travel
| | Some characteristics of functional programming
| | pbrisbin.com
23.8 parsecs away

Travel
| In Haskell, functions must always return the same consistent type. There is also no concept of nil or null built into the language. This is not meant to handicap you, and the expressiveness and polymorphic-ness of Haskell's types mean it certainly does not. One way to handle such situations where functions (conceptually) may or may not return a value is through the Maybe type. data Maybe a = Just a | Nothing Maybe is a perfect and simple solution for this situation.