Documentation
¶
Overview ¶
Package list implements persistent list.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List interface {
// Len returns the number of values in the list.
Len() int
// Conj returns a new list with an additional value in the front.
Conj(any) List
// First returns the first value in the list.
First() any
// Rest returns the list after the first value.
Rest() List
}
List is a persistent list.
var Empty List = &list{}
Empty is an empty list.
Click to show internal directories.
Click to hide internal directories.