Update OBExtensions.swift
⚒ Library for more convenient optional binding.
import OBExtensions
Before
var string: String? guard let s = string else { return "" }
After
var string: String? let s = string.obe(error: { return "" })
and
if let s = string { print("string :: \(s)") } else { fatalError() }
let s = string.obe { print("string :: \($0)") }
pod 'OBExtensions'
import PackageDescription let package = Package( name: "MyApp", dependencies: [ .Package(url: "https://github.com/Pelagornis/OBExtensions", branch: "main"), ] )
OBExtensions is under MIT license. See the LICENSE file for more info.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
OBExtensions
⚒ Library for more convenient optional binding.
Using
import
Use
Before
After
and
Before
After
Installation
License
OBExtensions is under MIT license. See the LICENSE file for more info.