github.com/github.com/oliverrussellwhite/Result

Swift library for Result type


Keywords
result, swift
License
Unlicense

Documentation

Result

enum Result<Wrapped> {
    case success(Wrapped)
    case failure(Error)

    func map<U>(_ transform: (Wrapped) throws -> U) throws -> U
}