3 ms·
This is a quick follow up to my previous post demonstrating the types of data using Swift. Swift is interestingly a really great language for expressing the typ
by tel 12y ago
This is a quick follow up to my previous post demonstrating the types of data using Swift. Swift is interestingly a really great language for expressing the types of data (in particular, it has the ability to create true sums).
So if you were a bit turned off by the Haskell examples in the previous post perhaps these examples will be helpful.
(Also, I just started playing with Swift tonight, so feedback on style would be greatly appreciated!)