fork(1) download
  1. type
  2. IntArray = array[0..5, int] # 0..5がインデックスの配列
  3. var
  4. x: IntArray
  5. x = [1, 2, 3, 4, 5, 6]
  6. for i in low(x)..high(x):
  7. echo x[i]
  8.  
Success #stdin #stdout 0s 4532KB
stdin
Standard input is empty
stdout
1
2
3
4
5
6