Lists
Lists are used to store multiple values of the same type.
List Operations
这些操作并不修改原列表的值,返回的是其 copy.
1 | head :: [a] -> a -- returns the first element |
Maybe Type
约等于 Rust 里的 Option<T>
1 | Maybe Int |
Either Type
1 | Either String Int |