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