January 2022
Beginner
424 pages
8h 8m
English
Why there is a need for anonymous inline functions, with type inference for the arguments and the return value type, without having to write braces, and which can access the variables that are alive at the function definition point
How such lightweight functions, named “closures,” can be declared and invoked
This will print: [0, 1, 4, 7, 8, ...