Commits

Anonymous committed 5eda4ea

Fix broken OptionFunctor

  • Participants
  • Parent commits c8bba45

Comments (0)

Files changed (1)

 implicit val OptionFunctor = new Functor[Option] {
 	def map[A, B](fa: Option[A])(f: A => B) : Option[B] = 
 		fa match {
-			case Some a => f(a)
+			case Some a => Some(f(a))
 			case None => None
 		}
 }