solidified_func->func_header_entity = entity_header;
solidified_func->func->entity_header = entity_header;
solidified_func->func->entity_body = entity_body;
-
return 1;
}
-Closing the count iterator...
54.0000
56.0000
58.0000
60.0000
62.0000
+Closing the count iterator...
Starting the iteration...
54
56
60
62
Closing the count iterator...
-Closing the count iterator...
58
Starting the zipped iteration...
{
quick_iterator :=
- count_iterator(1.0f, 10.0f)
+ count_iterator(1.0f, 20.0f)
|> iter.map((x) => x * 2)
|> iter.filter((x) => x > 10)
|> iter.map((x) => x + 42)
- |> iter.take(5)
- |> iter.to_array();
+ |> iter.take(5);
for v: quick_iterator {
println(v);
}
}
- iterator := count_iterator(1, 10)
+ iterator := iter.as_iterator(1 .. 11)
|> iter.map((x: i32) -> i32 { return x * 2; })
|> iter.filter((x: i32) -> bool { return x > 10; })
|> iter.map((x: i32) -> i32 { return x + 42; });
println("\nStarting the zipped iteration...");
zipped_iterator := count_iterator(1, 10)
- |> iter.map((x: i32) -> i32 { return x * 2; })
- |> iter.filter((x: i32) -> bool { return x > 10; })
- |> iter.map((x: i32) -> i32 { return x + 42; })
+ |> iter.map((x) => x * 2)
+ |> iter.filter((x) => x > 10)
+ |> iter.map((x) => x + 42)
|> iter.zip(iter.const(42.0f));
for value: zipped_iterator {