import gleam/io pub fn main() { // Call a function with another function io.debug(twice(1, add_one)) // Functions can be assigned to variables let my_function = add_one io.debug(my_function(100)) } fn twice(argument: Int, passed_function: fn(Int) -> Int) -> Int { passed_function(passed_function(argument)) } fn add_one(argument: Int) -> Int { argument + 1 }