Inhabited:永远不能为空的Swift Collection

时间:2021-05-13 22:06:03
【文件属性】:
文件名称:Inhabited:永远不能为空的Swift Collection
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-13 22:06:03
Swift 有人居住 集合不能为空 安装 SPM 将以下内容添加到您的Package.swift依赖项中: . package ( url : https : // github.com/klaaspieter/Inhabited, .branch("master")) 用法 // Non empty Arrays Inhabited ([]) // .none Inhabited ([ 1 , 2 , 3 , 4 ] // Inhabited(1, 2, 3, 4])? // Non empty Strings Inhabited ( " " ) // .none Inhabited ( " hello " ) // Inhabited("hello")? // Filter Inhabited ( " hello " ) ? . filter ({ _ in false }) // .none
【文件预览】:
Inhabited-master
----Sources()
--------Inhabited()
----Package.swift(373B)
----.gitignore(41B)
----Tests()
--------InhabitedTests()
--------LinuxMain.swift(99B)
----README.md(1KB)

网友评论