hello world 0
hello world 1
hello world 2
f(x, y, z) = { x + y + z + 2 }
f(x:number, y:number, z:number) = { x + y + z + 2 }
f(x, y, z) = {|x, y, z| x + y + y + 2 }
f(x:number, y:number, z:number) = {|x, y, z| x + y + y + 2 }
expected error occurs: TypeError: argument declaration conflicts
-x       y n n n n n n n n n n n n n n n
`x       n y n n n n n n n n n n n n n n
!!x      n n y n n n n n n n n n n n n n
x*       n n n n y n n n n n n n n n n n
x + y    n n n n n y n n n n n n n n n n
x = y    n n n n n n y n n n n n n n n n
x => y   n n n n n n n y n n n n n n n n
x::y     n n n n n n n n y n n n n n n n
{ }      n n n n n n n n n n y n n n n n
3        n n n n n n n n n n n n y n n n
[]       n n n n n n n n n n n y n n n n
x[y]     n n n n n n n n n n n n n n y n
x(y, z)  n n n n n n n n n n n n n n n y
  1  "Hayasaka Hiroko","hayasaka_hiroko@example.com","female",33,"1976/8/27","090-9134-30BF"
  2  "Hannda Yumiko","hannda_yumiko@example.com","female",75,"1934/10/20","080-6713-87BI"
  3  "Honma Chise","honma_chise@example.com","female",46,"1964/3/9","090-5237-82FJ"
  4  "Kawahata Nana","kawahata_nana@example.com","female",47,"1962/4/23","090-4760-51JA"
  5  "Kikuchi Takao","kikuchi_takao@example.com","male",35,"1975/1/1","080-1904-58CH"
  6  "Iwai Michiko","iwai_michiko@example.com","female",36,"1974/2/2","090-4520-77GH"
  7  "Kasai Satoshi","kasai_satoshi@example.com","male",24,"1985/12/23","090-8055-78CB"
  8  "Shima Masashi","shima_masashi@example.com","male",61,"1948/12/20","090-4180-99GH"
  9  "Suenaga Rena","suenaga_rena@example.com","female",80,"1929/5/22","080-1042-32EG"
 10  "Yokokawa Fumiyo","yokokawa_fumiyo@example.com","female",24,"1985/11/9","090-2679-49BI"
  1  "Hayasaka Hiroko","hayasaka_hiroko@example.com","female",33,"1976/8/27","090-9134-30BF"
  2  "Hannda Yumiko","hannda_yumiko@example.com","female",75,"1934/10/20","080-6713-87BI"
  3  "Honma Chise","honma_chise@example.com","female",46,"1964/3/9","090-5237-82FJ"
  4  "Kawahata Nana","kawahata_nana@example.com","female",47,"1962/4/23","090-4760-51JA"
  5  "Kikuchi Takao","kikuchi_takao@example.com","male",35,"1975/1/1","080-1904-58CH"
  6  "Iwai Michiko","iwai_michiko@example.com","female",36,"1974/2/2","090-4520-77GH"
  7  "Kasai Satoshi","kasai_satoshi@example.com","male",24,"1985/12/23","090-8055-78CB"
  8  "Shima Masashi","shima_masashi@example.com","male",61,"1948/12/20","090-4180-99GH"
  9  "Suenaga Rena","suenaga_rena@example.com","female",80,"1929/5/22","080-1042-32EG"
 10  "Yokokawa Fumiyo","yokokawa_fumiyo@example.com","female",24,"1985/11/9","090-2679-49BI"
  1  "Hayasaka Hiroko","hayasaka_hiroko@example.com","female",33,"1976/8/27","090-9134-30BF"
  2  "Hannda Yumiko","hannda_yumiko@example.com","female",75,"1934/10/20","080-6713-87BI"
  3  "Honma Chise","honma_chise@example.com","female",46,"1964/3/9","090-5237-82FJ"
  4  "Kawahata Nana","kawahata_nana@example.com","female",47,"1962/4/23","090-4760-51JA"
  5  "Kikuchi Takao","kikuchi_takao@example.com","male",35,"1975/1/1","080-1904-58CH"
  6  "Iwai Michiko","iwai_michiko@example.com","female",36,"1974/2/2","090-4520-77GH"
  7  "Kasai Satoshi","kasai_satoshi@example.com","male",24,"1985/12/23","090-8055-78CB"
  8  "Shima Masashi","shima_masashi@example.com","male",61,"1948/12/20","090-4180-99GH"
  9  "Suenaga Rena","suenaga_rena@example.com","female",80,"1929/5/22","080-1042-32EG"
 10  "Yokokawa Fumiyo","yokokawa_fumiyo@example.com","female",24,"1985/11/9","090-2679-49BI"
colsPerLines: [87, 84, 78, 83, 80, 80, 82, 82, 81, 87, 86, 77, 89, 87, 89, 93, 89, 82, 87, 91, 81, 79, 90, 79, 84, 87, 85, 80, 87, 79, 91, 84, 86, 79, 80, 79, 74, 81, 86, 83, 76, 79, 77, 83, 81, 81, 78, 82]
lines of 50records-en.csv is 48
c_like_for(`init, `cond, `next):dynamic_scope {block:inside_scope} = { env = outers(), env.eval(init), while (env.eval(cond)) { block(), env.eval(next) } }
  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19
 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
hello   0
hello   1
hello   2
i = 3
block delegation test
begin    0   1   2 end
   0   1   2   3   4   5   6   7   8   9
a=2, b=3, c=[4, 5, 6]
{ if (block == nil) { println('do nothing') } else { block(x * 2) } }
do nothing
4
f(1, 2, 3) {|a, b, c| return('no problem') } .. no problem
f(n) {block} = { s = 0, for (i in 1 .. n) { s += block(i) }, s }
f(10) {|x| x } .. 55
f(10) {|x| x * x } .. 385
t .. [1, 3, 4, 5, 6]
select_with_index(t) {|x| x % 2 == 0 } .. [[4, 2], [6, 4]]
fibonacci generation using a block
   0   1   1   2   3   5   8  13  21  34  55  89 144 233 377 610 987
