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

loverdos/maybe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.