mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Rename the parameter to transform
.
This commit is contained in:
parent
e7a525910f
commit
d4744200ae
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user