Module coil-stdlib

collections::list

Part of coil-stdlib. spool projects get it automatically; with plain coil, pass --root ~/.coil/stdlib/src.

Import what you use (use path::* is not allowed):

use collections::list::{Node, List};

Types#

NameDescription
NodeOne cell of a List: a value and the rest of the list.
ListA singly-linked list with constant-time push and pop at the front.
ListIterAn iterator over a List, front to back, from List::iter.
↑ ↓ navigate ↵ open