範囲
範囲は範囲演算子で指定できます。範囲演算子には以下の2種類があります。
..:半開区間..=:閉区間
範囲は for 文などの場所で使うことができます。
module ModuleA {
initial {
for _i in 0..10 {}
for _j in 0..=10 {}
}
}
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
範囲は範囲演算子で指定できます。範囲演算子には以下の2種類があります。
..:半開区間..=:閉区間範囲は for 文などの場所で使うことができます。
module ModuleA {
initial {
for _i in 0..10 {}
for _j in 0..=10 {}
}
}