Power Tools: Closures & Iterators
10 min · Rust
Write inline closures and transform vectors with .map() and .filter().
Rust · Power Tools: Closures & Iterators0/5 cleared
Enemy 1 of 5
A closure is a compact, unnamed function: |params| expression. Assign it to a variable and call it just like a regular function.
You
Syntax Skeleton
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 36