4 ms·
I’ve been doing some swift for a while, it’s a great language. This is the first time I’ve heard you could do recursive enum cases. Very neat! I wonder if that
by MBCook 3y ago
I’ve been doing some swift for a while, it’s a great language.
This is the first time I’ve heard you could do recursive enum cases. Very neat! I wonder if that’s recent or not.
- airspeedswift 3y agoBeen there since 2.0. You can combine it with pattern matching to do some fun stuff: https://gist.github.com/airspeedswift/6e0c037ad5dd1b763d353f358791eef7#file-rbtree-swift-L43 https://gist.github.com/airspeedswift/6e0c037ad5dd1b763d353f...