This file contains hidden or 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
// | |
// main.swift | |
// swift challenges | |
// | |
// Created by Filipp Mikheev on 06.06.22. | |
// | |
import Foundation | |
extension DateComponents { |
This file contains hidden or 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
// | |
// main.swift | |
// swift challenges | |
// | |
// Created by Filipp Mikheev on 06.06.22. | |
// | |
import Foundation | |
func getFirstPrimeNumbers(lastNumber: Int) -> [Int] { |
This file contains hidden or 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
// | |
// main.swift | |
// swift challenges | |
// | |
// Created by Filipp Mikheev on 06.06.22. | |
// | |
func measureTime(block : (() -> Void)) { | |
let start = DispatchTime.now() | |
block() |
This file contains hidden or 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
// | |
// main.swift | |
// swift challenges | |
// | |
// Created by Filipp Mikheev on 11.07.22. | |
// | |
import Foundation | |
extension Dictionary where Key == String, Value == Any { |