1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Rename the parameter to transform.

This commit is contained in:
Rob Rix 2015-10-22 12:51:26 -04:00
parent e7a525910f
commit d4744200ae

View File

@ -118,8 +118,8 @@ public enum Free<A, B>: CustomDebugStringConvertible, SyntaxConvertible {
// MARK: - Anamorphism
extension Free {
public func ana<Seed>(f: Seed -> Syntax<Seed, A>)(_ seed: Seed) -> Free {
return (Roll <<< { $0.map(self.ana(f)) } <<< f)(seed)
public func ana<Seed>(transform: Seed -> Syntax<Seed, A>)(_ seed: Seed) -> Free {
return (Roll <<< { $0.map(self.ana(transform)) } <<< transform)(seed)
}
}