SwiftのflatMapとcompactMapについて

braitombraitom のブックマーク 2018/10/12 00:28

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

flatMap vs compactMap

    In Swift 4.1, the flatMap function was divided into two functions. One kept the same name: flatMap This method flattens a sequence. Let’s say we have a two-dimensional array: let a = [[0,1,2],[3,4,...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう