This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let sortedTradingRecords = tradingRecords.sort { $0.time.compareAsNSDate < $1.time.compareAsNSDate } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 遞迴是程式設計師的最愛也最恨 | |
| 愛的是簡潔 | |
| 恨的是出包往往在無形之間(Stack Overflow) | |
| 以及效率非常緩慢 | |
| 所有的遞迴寫法一定可以用迴圈取代 | |
| 但換來的就是一連串冗長的程式碼了 | |
| L. Peter Deutsch 程式設計師說過一段經典名句 |
NewerOlder