1
1
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:
Rob Rix 2015-10-14 10:20:21 -04:00
parent 2c56ee66ea
commit 011719b752

View File

@ -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) })
}
}