| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
22 バイト除去 、 2021年4月3日 (土) 17:50
</pre>
===ネストした関数===
Nested functions are hidden from the outside world by default, but can still be called and used by their enclosing function. An enclosing function can also return one of its nested functions to allow the nested function to be used in another scope.
*https://docs.swift.org/swift-book/LanguageGuide/Functions.html
 
*デフォルトでは外部から隠されている
*囲っている関数からは呼び出すことができる
*囲っている関数は、ネストした関数を外部で使用するために返すことができる。
<pre>
func chooseStepFunction(backward: Bool) -> (Int) -> Int {

案内メニュー