mirror of
https://github.com/github/semantic.git
synced 2024-11-25 21:43:07 +03:00
Use Prelude’s id.
This commit is contained in:
parent
94182aac35
commit
d32ac4c789
@ -195,3 +195,6 @@ extension Free where A: CustomJSONConvertible, B: PatchConvertible, B.Info == A
|
||||
return JSON { $0.patch.JSON }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
import Prelude
|
||||
|
@ -3,10 +3,6 @@ func fix<T, U>(f: (T -> U) -> T -> U) -> T -> U {
|
||||
}
|
||||
|
||||
|
||||
func id<A>(a: A) -> A {
|
||||
return a
|
||||
}
|
||||
|
||||
func const<A, B>(a: A)(_ b: B) -> A {
|
||||
return a
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user