menu_book Course Curriculum (Gleam) expand_more
Language Basics
Types & Data
Functions & Modules
Generic types
Learn Generic types in Gleam with a focused explanation, a topic-specific example, and a mastery check.
12 min read
•
Beginner
gleam-015.gleam
gleam
pub type Box(a) { Box(value: a) }
pub fn unwrap(box: Box(a)) -> a { let Box(value) = box; value }
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content