type Option = Some(T) | None type Color = Red | Green | Blue type Ord = LT | EQ | GT fn map(input: Option, func: Func): Option { if input { is Some(x) -> Some(func(x)), is None -> None, } }