mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
19 lines
315 B
Plaintext
19 lines
315 B
Plaintext
// Starts at "from" and adds 1.0 each iteration.
|
|
|
|
for (n in 1.3..4.5) IO.print(n)
|
|
// expect: 1.3
|
|
// expect: 2.3
|
|
// expect: 3.3
|
|
// expect: 4.3
|
|
|
|
for (n in 1.3...4.5) IO.print(n)
|
|
// expect: 1.3
|
|
// expect: 2.3
|
|
// expect: 3.3
|
|
// expect: 4.3
|
|
|
|
for (n in 1.3...4.3) IO.print(n)
|
|
// expect: 1.3
|
|
// expect: 2.3
|
|
// expect: 3.3
|