Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Latest commit

 

History

History
14 lines (9 loc) · 462 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 462 Bytes

MAYBE

Inspired by Lift's Box, Haskell's Maybe and Scala's Option.

A few noteable characteristics:

  • Maybe() is a polymorphich constructor that Does The Right Thing, no matter the input.
  • get is only provided for a Just value, not in the general Maybe API.
  • map on a Just Does The Right Thing, even if the calling function explodes.

Latest release is "com.ckkloverdos" % "maybe" % "0.5.0" from Maven Central, compiled with Scala 2.9.1.