Trait adapton::catalog::collections::ListIntro [] [src]

pub trait ListIntro<X: 'static>: Debug + Clone + Hash + PartialEq + Eq + 'static {
    fn nil() -> Self;
fn cons(_: X, _: Self) -> Self;
fn name(_: Name, _: Self) -> Self;
fn art(_: Art<Self>) -> Self; fn singleton(hd: X) -> Self { ... }
fn name_art(nm: Option<Name>, rest: Self) -> Self { ... } }

Types that can be created like a list of X are ListIntro<X>

Required Methods

Introduce an empty list

Introduce a Cons cell

Introduce a Name "cons" cell

Introduce a list with an articulation that holds a list

Provided Methods

Creates a singleton list. Derived from cons and nil introduction forms.

For Some(nm), wraps the given list in name and art constructors for given name nm. For None, is the list identity function.

Implementors