1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 12:23:08 +03:00

Move the function composition operator into the Operators file.

This commit is contained in:
Rob Rix 2015-10-02 16:42:42 -04:00
parent 089bd51fb3
commit 40291e2715
2 changed files with 5 additions and 5 deletions

View File

@ -48,6 +48,11 @@ infix operator </> {
precedence 140
}
infix operator >>> {
associativity right
precedence 170
}
prefix operator ^ {}
postfix operator * {}

View File

@ -8,11 +8,6 @@ func const<A, B>(a: A)(_ b: B) -> A {
}
infix operator >>> {
associativity right
precedence 170
}
func >>> <T, U, V> (f: T -> U, g: U -> V) -> T -> V {
return { g(f($0)) }
}