Copyright 2002-2013, LAMP/EPFL $ curl -O https://repo1.maven.org/maven2/org/scalaz/ scalaz-core_2.11/7.1.2/scalaz-core_2.11-7.1.2.jar $ scala -cp scalaz-core_2.11-7.1.2.jar > import scalaz.Scalaz._ val hello = (str: String) => "Hello, " + str val z = (str: Option[String]) => str.getOrElse("Z") (hello <<< z)(None) // => "Hello, Z” (hello <<< z)(Some(“World”)) // => “Hello, World”