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:
parent
089bd51fb3
commit
40291e2715
@ -48,6 +48,11 @@ infix operator </> {
|
||||
precedence 140
|
||||
}
|
||||
|
||||
infix operator >>> {
|
||||
associativity right
|
||||
precedence 170
|
||||
}
|
||||
|
||||
prefix operator ^ {}
|
||||
|
||||
postfix operator * {}
|
||||
|
@ -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)) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user