Simplify ForEach By Creating The ForEachIterable Protocol
Daily Coding Tip 263
When applied to an enum, this ForEachIterable protocol has a default implementation that works.
In other words, there is built-in conformance to CaseIterable for enums as long as you declare conformance. There are no stubs to be added after an error complaining that you do not conform to CaseIterable. All this protoco…


