list

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistentList

type PersistentList interface {
	Head() (interface{}, bool)
	Tail() (PersistentList, bool)
	IsEmpty() bool
	Length() uint
	Add(head interface{}) PersistentList
	Insert(val interface{}, pos uint) (PersistentList, error)
	Get(pos uint) (interface{}, bool)
	Remove(pos uint) (PersistentList, error)
	Find(func(interface{}) bool) (interface{}, bool)
	FindIndex(func(interface{}) bool) int
	Map(func(interface{}) interface{}) []interface{}
}

PersistentList What is this? :TODO:

var (
	Empty        PersistentList = &emptyList{}
	ErrEmptyList                = errors.New("Empty List")
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL