mirror of
https://github.com/github/semantic.git
synced 2024-11-29 11:02:26 +03:00
extend
’s transformation function is @noescape
.
This commit is contained in:
parent
7bff8f6f50
commit
2c56ee66ea
@ -37,7 +37,7 @@ extension Cofree {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public func extend<Other>(transform: Cofree -> Other) -> Cofree<A, Other> {
|
public func extend<Other>(@noescape transform: Cofree -> Other) -> Cofree<A, Other> {
|
||||||
return .Unroll(transform(self), unwrap.map { $0.extend(transform) })
|
return .Unroll(transform(self), unwrap.map { $0.extend(transform) })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user