fp2/non_empty_list
Types
pub type NonEmptyList(a) {
NonEmptyList(head: a, tail: List(a))
}
Constructors
-
NonEmptyList(head: a, tail: List(a))
Functions
pub fn append_list(init: List(a), end: a) -> NonEmptyList(a)
pub fn prepend_list(tail: List(a), head: a) -> NonEmptyList(a)