package list
import "src.elv.sh/pkg/persistent/list"
Package list implements persistent list.
Index ¶
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.
Source Files ¶
list.go
- Version
- v0.21.0 (latest)
- Published
- Aug 13, 2024
- Platform
- linux/amd64
- Last checked
- 1 week ago –
Tools for package owners.