[swift-evolution] Proposal: Pattern Matching Partial Function (#111)

Charles Constant charles at charlesism.com
Fri Jan 29 01:01:13 CST 2016


I'm still +1 on this.

I would very much enjoy being able to do this:

let str = state.map {

	case .Cold: 	“Too cold”

	case .Hot: 	“Too hot”

	default: 	“Just right”

}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160128/92f762f4/attachment.html>


More information about the swift-evolution mailing list