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
921 stars 108 forks source link

Add CasePath.some, for unwrapping optionals #91

Closed stephencelis closed 2 years ago

stephencelis commented 2 years ago

Enables shorthands .some and /.some for /Optional.some. This has come up in the past so it seems handy enough to ship.