mirror of
https://github.com/github/semantic.git
synced 2024-11-25 21:43:07 +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
|
||||
|
||||
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) })
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user