swifter:使 Swift 更加 Swift 的功能扩展

时间:2021-06-25 06:31:53
【文件属性】:
文件名称:swifter:使 Swift 更加 Swift 的功能扩展
文件大小:81KB
文件格式:ZIP
更新时间:2021-06-25 06:31:53
Swift 更快 Swifter 通过添加功能扩展使 Swift 更加Swifter 。 偏函数 PartialFunction类型的偏函数是一个一元函数,其中域不一定包含类型 A 的所有值。函数isDefinedAt允许动态测试值是否在函数域中。 之间的主要区别PartialFunction和斯威夫特的功能是,用户PartialFunction可以选择做一个声明是其领域之外的输入不同的东西。 例如: let sample = [ 1 , 2 , 3 , 4 , 5 , 6 ] let acceptEven = PartialFunction < Int> { ( i : Int , _ ) in if i % 2 == 0 { return . Defined ( " \( i ) is even " ) } else {
【文件预览】:
swifter-master
----SwifterSimulations()
--------ViewController.swift(2KB)
--------PartialFunctionTrySimulations.playground()
--------ListSimulations.playground()
--------Base.lproj()
--------ConcurrencySimulations.playground()
--------AppDelegate.swift(441B)
--------Images.xcassets()
--------Info.plist(1KB)
----LICENSE(11KB)
----.gitignore(252B)
----Swifter()
--------Promise.swift(5KB)
--------Future.swift(4KB)
--------Log.swift(1KB)
--------PartialFunction.swift(6KB)
--------PersistentDataStructure.swift(2KB)
--------NSLock+Functional.swift(342B)
--------Swifter.h(341B)
--------Awaitable.swift(1KB)
--------PartialFunctionPlayground.playground()
--------LinkedList.swift(3KB)
--------Scheduler.swift(608B)
--------Tree.swift(3KB)
--------Array+Functional.swift(418B)
--------Try.swift(5KB)
--------Info.plist(821B)
--------List.swift(10KB)
--------NSTimer+Functional.swift(1KB)
--------Executable.swift(747B)
----README.md(7KB)
----Swifter.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(51KB)
----SwifterTests()
--------ExecutableTests.swift(448B)
--------TryTests.swift(5KB)
--------TreeTests.swift(2KB)
--------NSTimer+FunctionalTests.swift(836B)
--------FutureTests.swift(5KB)
--------Array+FunctionalTests.swift(1KB)
--------PromiseTests.swift(3KB)
--------SwiftTestUtilities.swift(479B)
--------LinkedListTests.swift(2KB)
--------PartialFunctionTests.swift(8KB)
--------ListTests.swift(7KB)
--------NSLock+FunctionalTests.swift(2KB)
--------Info.plist(748B)

网友评论