- Reactive Programming with Swift 4
- Navdeep Singh
- 62字
- 2021-06-24 18:58:02
Adding tuple destructuring
Consider code such as the following:
swift func foo(_: ((Int, Int) -> ()) {} foo { (x, y) in print(x + y) }
The migrator must add explicit tuple destructuring to continue building in Swift 4, such as shown here:
swift func foo(_: ((Int, Int) -> ()) {} foo { let (x, y) = $0; print(x + y) }
推薦閱讀
- Visual C++程序設計教程
- PostgreSQL for Data Architects
- Learning Neo4j 3.x(Second Edition)
- Amazon S3 Cookbook
- Data Analysis with Stata
- 人人都懂設計模式:從生活中領悟設計模式(Python實現)
- Web Development with MongoDB and Node(Third Edition)
- Getting Started with Eclipse Juno
- WordPress Search Engine Optimization(Second Edition)
- Tkinter GUI Programming by Example
- Slick2D Game Development
- PHP從入門到精通(微視頻精編版)
- Programming MapReduce with Scalding
- 微軟辦公軟件認證考試MOS Access 2013實訓教程
- 編程改變生活:用PySide6/PyQt6創建GUI程序(進階篇·微課視頻版)