Closed vidalvasconcelos closed 4 months ago
Although the fn keyword was introduced in the previous section, using "function" to name variables and parameters may produce more misunderstandings than benefits.
fn
fn twice(argument: Int, function: fn(Int) -> Int) -> Int { function(function(argument)) }
Thank you!
Although the
fn
keyword was introduced in the previous section, using "function" to name variables and parameters may produce more misunderstandings than benefits.