RosettaCodeData/Task/Closures-Value-capture/Jactl/closures-value-capture.jactl
2026-04-30 12:34:36 -04:00

2 lines
51 B
Text

def f = 10.map{ i -> { -> i * i } }
println f[5]()