What do the empty parentheses `()` mean in Elm?
问题 I found out they are mean an empty tuple. However, are they also used as a convention by Elm programmers to mean "value can be ignored"? is13 : Int -> Result String () is13 code = if code == 13 then Ok () else Err "not the right key code" Source: https://github.com/pdamoc/elmChallenges/blob/master/challenge5.elm 回答1: The empty parentheses () are what's known as a unit type, that is, a type that can only ever have a single value. A tuple type with at least one item can have any number of