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
| // | |
| // IntPow.swift | |
| // | |
| // Created by Khan Winter on 5/1/25. | |
| // | |
| /// Raises an integer to a positive power. | |
| @inlinable | |
| public func pow(_ base: Int, _ exp: UInt) -> Int { | |
| var exp = exp |
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
| // | |
| // HashableEncoder.swift | |
| // Anchor | |
| // | |
| // Copyright (C) 2025 Khan Winter | |
| // | |
| import Foundation | |
| import Crypto |
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
| // | |
| // TaskGroup+addTasks.swift | |
| // Anchor | |
| // | |
| // Copyright (C) 2025 Khan Winter | |
| // | |
| extension TaskGroup { | |
| /// Add tasks to a task group using an array of data, and set a maximum number of parallel tasks to enqueue. | |
| /// |
OlderNewer