Everything extra that used to be in Swift-General-Utility has moved here except the core enum
Inline functional Applicative
protocol that supports applying a closure to an instance, returning the instance.
Note: Types must conform to the protocol to inherit the behavior, as non-nominal types like Any
cannot be extended.
A stringity error type representing runtime errors.
Enables debugging within method chains and condition cascades.
Request synchronous data using URLSession
.
- Partition split.
- Initializes a
Result
from a completion handler's(data?, error?)
.
- Trim a string
PROJECT > Swift Packages > Install:
https://github.com/erica/https://github.com/erica/Swift-Misc-Utility
SwiftPM:
dependencies: [
.package(url: "https://github.com/erica/Swift-Misc-Utility", from: "x.x.x"), // replace with version
],
targets: [
.target(
name: "TARGET-NAME",
dependencies: [
.product(name: "MiscUtility", package: "Swift-Misc-Utility"),
],
),
],