typelib

package module
v0.0.0-...-d6ae28c Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: JSON Imports: 0 Imported by: 0

README

== About ==

Typelib is a collection of packages providing collection types for each of Go's core types.

Documentation

Index

Constants

View Source
const (
	LESS_THAN = Comparison(iota)
	EQUAL_TO
	GREATER_THAN
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparable

type Comparable interface {
	Compare(o interface{}) Comparison
}

type Comparison

type Comparison int

type Container

type Container interface {
	At(x ...interface{}) interface{}
	Store(value interface{}, x ...interface{})
}

type Enumerable

type Enumerable interface {
	Each(f interface{})
}

type Equatable

type Equatable interface {
	Equal(o interface{}) bool
}

type List

type List interface {
	Equatable
	Referenceable
	Enumerable
	Container
	String() string
	Len() int
	Append(v interface{}) List
	Prepend(v interface{}) List
	Clone() List
	Collect(f interface{}) List
	Delete(f interface{}) List
	Reduce(f interface{}) List
	Reverse() List
}

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode(v interface{}) *Node

func (*Node) Append

func (n *Node) Append(v interface{}) (r *Node)

func (*Node) Clone

func (n *Node) Clone() (r *Node)

func (*Node) Content

func (n *Node) Content() (r interface{})

func (*Node) EachToEnd

func (n *Node) EachToEnd(f func(*Node))

func (*Node) EachToStart

func (n *Node) EachToStart(f func(*Node))

func (*Node) End

func (n *Node) End() (r *Node)

func (*Node) Equal

func (n *Node) Equal(o interface{}) (r bool)

func (*Node) Fix

func (n *Node) Fix() (end *Node, length int)

func (Node) Next

func (n Node) Next() *Node

func (Node) Previous

func (n Node) Previous() *Node

func (*Node) Splice

func (n *Node) Splice(o *Node)

func (*Node) Start

func (n *Node) Start() (r *Node)

func (*Node) Store

func (n *Node) Store(v interface{})

func (*Node) Truncate

func (n *Node) Truncate()

type Referenceable

type Referenceable interface {
	IsNil() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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