Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Gleam) expand_more
Gleam / Functions & Modules

Named functions

Learn Named functions in Gleam with a focused explanation, a topic-specific example, and a mastery check.

12 min read • Intermediate
gleam-017.gleam
gleam
pub fn total(a: Int, b: Int) -> Int { a + b }
pub fn main() { io.debug(total(4, 7)) }
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content