This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum IntegerSqrtError : Error { | |
case outOfBounds, noRoot | |
} | |
func isqrt(_ n: Int) throws -> Int { | |
if n < 1 || n > 10_000 { | |
throw IntegerSqrtError.outOfBounds | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// Conversion | |
// | |
// Created by nmbr73 on 07.09.22. | |
// | |
import SwiftUI | |
struct ContentView: View { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// RockPaperScissors | |
// | |
// Created by nmbr73 on 17.09.22. | |
// | |
import SwiftUI | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// Edut(r)ainMe - Day35 | |
// | |
// Created by mbr73 on 04.10.22. | |
// | |
import SwiftUI | |
struct Question { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TobiType.swift | |
// | |
// https://twitter.com/dunkeeel/status/1587206501004939264?s=61&t=B4d_UGPw9A9ZN3A894q5yQ | |
import SwiftUI | |
struct TobiType: View { | |
struct SingleLetter: View { |
OlderNewer