mirror of https://github.com/sbt/sbt.git
type alias A ~>| B for [T]A[T] => Option[B[T]]
This commit is contained in:
parent
14d1bc5282
commit
32150e7097
|
|
@ -17,6 +17,8 @@ trait TypeFunctions
|
|||
implicit def toFn1[A,B](f: A => B): Fn1[A,B] = new Fn1[A,B] {
|
||||
def ∙[C](g: C => A) = f compose g
|
||||
}
|
||||
|
||||
type ~>|[A[_],B[_]] = A ~> Compose[Option, B]#Apply
|
||||
}
|
||||
object TypeFunctions extends TypeFunctions
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue