@``` forloop2.gw
for(var int i; i < 3; ++i) {
- i/2 => float f1;
- i/2. => float f2;
+ i/2 => var float f1;
+ i/2. => var float f2;
<<< i, " " , f1, " ", f2 >>>;
}
@```
## Nested Loops
@``` forloop3.gw
-int array[3][4];
+var int array[3][4];
for(var int i; i < 3; ++i) {
for(var int j; j < 4; ++j) {
### Passing to a function pointer
@``` lambda_fptr0.gw
-typedef void fptr_t(int);
+funcdef void fptr_t(int);
\ i { <<< "passed '", i, "'" >>>; } @=> var fptr_t fptr;
fptr(4);
@```
### As Argument to Functions
@``` lambda_args0.gw
-typedef void fptr_t(int);
+funcdef void fptr_t(int);
fun void test(fptr_t fptr) {
fptr(5);
}