menu_book Course Curriculum (Gleam) expand_more
Language Basics
Types & Data
Functions & Modules
Anonymous functions
Learn Anonymous functions in Gleam with a focused explanation, a topic-specific example, and a mastery check.
12 min read
•
Intermediate
gleam-018.gleam
gleam
pub fn main() {
let double = fn(x) { x * 2 }
io.debug(double(9))
}
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content