-
Create a closer
add_one
to add 1 to an integer. -
Create an vec of numbers from
0
...100
, mutate the vec so that it does not contain any number divisible by3
. Useretain
method of Vec. -
Create a function that accepts a closure
Create a closer add_one
to add 1 to an integer.
Create an vec of numbers from 0
... 100
, mutate the vec so that
it does not contain any number divisible by 3
. Use retain
method of Vec.
Create a function that accepts a closure