mirror of
https://github.com/sbt/sbt.git
synced 2026-08-28 17:13:56 +02:00
type alias A ~>| B for [T]A[T] => Option[B[T]]
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user