[swift-evolution] Proposal: Enum 'count' functionality

Pierre Monod-Broca pierre at monod-broca.fr
Wed Dec 23 07:00:38 CST 2015

+1 for an ordered collection of all cases, it could be an ordered set to please proponents of a set.

I have no strong opinions about the name
`cases` is good, but I agree it begs to do ''for case in SomeEnum.cases''
`values` is good, and IMO it's consistent with `rawValue` when there is one, not confusing


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151223/803ec8b6/attachment.html>

More information about the swift-evolution mailing list