const float ii;
123=> var float f;
-for(a : [12, 1, 2 ,3].compactMap:[int]( \a {
+foreach(a : [12, 1, 2 ,3].compactMap:[int]( \a {
var int?i;
145 => i.val;
if(maybe)
i.val++;
return i;
}
-for(a : [12, 1, 2 ,3].compactMap:[int](t))
+foreach(a : [12, 1, 2 ,3].compactMap:[int](t))
<<< "mapped to => ${a}" >>>;
<<< "test" >>>;
fun float t(float i) { return 2; }
-for(a : [12., 1, 2 ,3].map:[float](t))
+foreach(a : [12., 1, 2 ,3].map:[float](t))
<<< "mapped to => ${a}" >>>;
-#!for(a : [12, 1, 2 ,3].map:[int](t))
+#!foreach(a : [12, 1, 2 ,3].map:[int](t))
#! <<< "mapped to => ${a}" >>>;
-#!for(a : [12, 1, 2 ,3].map:[int](t))
+#!foreach(a : [12, 1, 2 ,3].map:[int](t))
#! <<< "mapped to => ${a}" >>>;
-#!for(a : [12, 1, 2 ,3].map:[int](t))
+#!foreach(a : [12, 1, 2 ,3].map:[int](t))
#! <<< "mapped to => ${a}" >>>;
-#!for(a : [12, 1, 2 ,3].map:[int]( \a {145 => a;return 2;}))
+#!foreach(a : [12, 1, 2 ,3].map:[int]( \a {145 => a;return 2;}))
#! <<< "mapped to => ${a}" >>>;
-#!for(a : [12, 1, 2 ,3].map:[int]( \a {145 => a;return 2;}))
+#!foreach(a : [12, 1, 2 ,3].map:[int]( \a {145 => a;return 2;}))
#! <<< "mapped to => ${a}" >>>;