pointfreeco / swift-case-paths

🧰 Case paths extends the key path hierarchy to enum cases.
https://www.pointfree.co/collections/enums-and-structs/case-paths
MIT License
904 stars 105 forks source link

Make `Optional`/`Result` more consistent with macro-generated code #166

Closed stephencelis closed 3 months ago

stephencelis commented 3 months ago

This just cleans up the case path iteration for optional/result to be more consistent with the macro, which doesn't hold onto the array as storage, but rather lazily creates it.