Skip to content

Commit 7da5a9a

Browse files
author
Kota Mizushima
authored
Merge pull request #435 from kmizu/break-and-continue
breakやcontinueがないことに関する補足
2 parents a6984bf + e815393 commit 7da5a9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/control-syntax.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ while(i <= 10) {
139139
}
140140
```
141141

142-
Javaで`while`文を使った場合と同様です。`do while`式もありますが、ほぼJavaと同じなので説明は省略します。なお、`break`文や`continue`文に相当するものはありません。
142+
Javaで`while`文を使った場合と同様です。`do while`式もありますが、ほぼJavaと同じなので説明は省略します。なお、Javaの`break`文や`continue`文に相当する言語機能はありません。
143+
しかし、後ほど説明する高階関数を適切に利用すれば、ほとんどの場合、 `break``continue` は必要ありません。
143144

144145
### 練習問題 {#control_syntax_ex2}
145146

0 commit comments

Comments
 (0)