@mikuroxina/mini-fn
    Preparing search index...

    Type Alias Zipper<T>

    The zipper represents the cursor of non-empty list.

    type Zipper<T> = {
        current: T;
        left: List.List<T>;
        right: List.List<T>;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    current: T

    The current element picked up.

    left: List.List<T>

    The left side of zipper, its order is reversed from the source list.

    right: List.List<T>

    The right side of zipper, its order is same as the source list.