Update Examples
parent
d50a721e34
commit
e05675fe9b
1 changed files with 1 additions and 0 deletions
|
@ -1335,6 +1335,7 @@ fn main
|
||||||
|
|
||||||
println! "imperative style: {}", acc
|
println! "imperative style: {}", acc
|
||||||
|
|
||||||
|
|
||||||
// Functional approach
|
// Functional approach
|
||||||
let sum_of_squared_odd_numbers: u32 =
|
let sum_of_squared_odd_numbers: u32 =
|
||||||
(0..).map $ * $
|
(0..).map $ * $
|
||||||
|
|
Loading…
Add table
Reference in a new issue