FranticApparatus

码农软件 · 软件分类 · 其他(Others) · 2019-07-23 06:13:04

软件介绍

FranticApparatus 是用 Swift 实现的 Promises/A+。

示例:

func fetchLinks(reddit: String) -> Promise<[Link]> {
    let url = NSURL(string: baseURL + "/r/" + reddit + ".json")

    return fetchJSON(url).when({ (data: NSData) -> Result<NSDictionary> in
        return .Deferred(parseJSON(data))
    }).when({ (json: NSDictionary) -> Result<[Link]> in
        return .Deferred(mapLinks(json))
    })
}


本文地址:https://codercto.com/soft/d/10733.html

Introduction to Algorithms, 3rd Edition

Introduction to Algorithms, 3rd Edition

Thomas H. Cormen、Charles E. Leiserson、Ronald L. Rivest、Clifford Stein / The MIT Press / 2009-7-31 / USD 94.00

Some books on algorithms are rigorous but incomplete; others cover masses of material but lack rigor. Introduction to Algorithms uniquely combines rigor and comprehensiveness. The book covers a broad ......一起来看看 《Introduction to Algorithms, 3rd Edition》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具