scalaz.example.PartiallyApplied.scala Maven / Gradle / Ivy
package scalaz.example
object PartiallyApplied extends App {
val f1: (String => Int) = _.length
val f2: (String => String => Int) = x => y => x.length + y.length
function1()
def function1() {
import scalaz._
import std.function._
import syntax.monad._
// uses implicit view ToFunctorVFromBin
f1.map(_ * 2)
f2.join
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy