2016-04-13から1日間の記事一覧

【Swift】Closureの$0とか$1とか

developer.apple.com Swift automatically provides shorthand argument names to inline closures, which can be used to refer to the values of the closure’s arguments by the names $0, $1, $2, and so on. 引数に特にこだわりがなければ第一引数を$0,…