👹
Playing type-level Sudoku
Senior iOS Software Engineer.
Apple Developer Academy graduate.
Purely functional animal.
- Amsterdam, Netherlands
- @TizianoCoroneo
Pinned Loading
-
Type level FizzBuzz in Swift 5.10
Type level FizzBuzz in Swift 5.10 1func namespace(_ f: () -> ()) -> () { f() }
23// A fizz buzz implementation in Swift
4namespace {
5let range = 1...100
-
Swift 5.10 - Cast [Any] to a tuple
Swift 5.10 - Cast [Any] to a tuple 1private func cast<each Result>(
2_ values: [Any],
3to r: (repeat each Result).Type = (repeat each Result).self
4) throws -> (repeat each Result) {
5var count = 0
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.