Skip to content

breakやcontinueがないことに関する補足 #435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/control-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ while(i <= 10) {
}
```

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

### 練習問題 {#control_syntax_ex2}

Expand Down