mrubyedge 1.1.12

mruby/edge is yet another mruby that is specialized for running on WASM
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
def do_each
  j = 0
  [1, 2, 3].each do |i|
    j += i
    puts "j = #{j}"
  end

  j = 0
  [1, 2, 3].each do |i|
    [10, 20, 30].each do |k|
      j += i + k
      puts "j = #{j}"
    end
  end
end

do_each