{"ScriptPreparationCode":"var x = [];\r\nfor(i=0; i\u003C1000; i\u002B\u002B){\r\n\tx.push(i)\r\n}\r\nfunction justReturn(item) { return item }\r\nfunction sideEffect2(arr, i) { arr[i] = x[i] }","TestCases":[{"Name":"lambda (created each time)","Code":"let a1 = [];\r\nfunction justReturn2(item) { return item }\r\nfor(i=0; i\u003C1000; i\u002B\u002B){\r\n\ta1[i] = justReturn2(x[i])\t\r\n}","IsDeferred":false},{"Name":"lambda (created once)","Code":"let a2 = [];\r\nfor(i=0; i\u003C1000; i\u002B\u002B){\r\n\ta2[i] = justReturn(x[i])\t\r\n}","IsDeferred":false},{"Name":"lambda (side-effect inline)","Code":"let a3 = [];\r\nfunction sideEffect2(i) { a3[i] = x[i] }\r\nfor(i=0; i\u003C1000; i\u002B\u002B){\r\n\tsideEffect2(i)\t\r\n}","IsDeferred":false},{"Name":"lambda (side-effect)","Code":"let a4 = [];\r\nfor(i=0; i\u003C1000; i\u002B\u002B){\r\n\tsideEffect(i)\t\r\n}","IsDeferred":false},{"Name":"no lambda","Code":"let a5 = [];\r\nfor(i=0; i\u003C1000; i\u002B\u002B){\r\n\ta5[i] = x[i]\t\r\n}","IsDeferred":false}]}