1
1
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:
Rob Rix 2015-10-13 00:55:20 -04:00
parent 94182aac35
commit d32ac4c789
2 changed files with 3 additions and 4 deletions

View File

@ -195,3 +195,6 @@ extension Free where A: CustomJSONConvertible, B: PatchConvertible, B.Info == A
return JSON { $0.patch.JSON }
}
}
import Prelude

View File

@ -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
}