Documentation ¶
Index ¶
- func Foldl(f func(carry interface{}, elem interface{}) interface{}, val interface{}, ...) interface{}
- func Foldl1(f func(interface{}, interface{}) interface{}, l List) interface{}
- func Foldr(f func(interface{}, interface{}) interface{}, val interface{}, l List) interface{}
- func Head(l List) interface{}
- func Index(idx uint, l List) interface{}
- func IsEmpty(l List) bool
- func MapM(f func(interface{}), l List)
- func Seq(l List)
- func ToSlice(l List) []interface{}
- type List
- func Append(i interface{}, l List) List
- func Concat(back, front List) List
- func Cons(i interface{}, l List) List
- func Consf(f func() interface{}, l List) List
- func HdTail(l List) (interface{}, List)
- func Map(f func(interface{}) interface{}, l List) List
- func Mzero() List
- func New(elems ...interface{}) List
- func Return(i interface{}) List
- func Returnf(f func() interface{}) List
- func Reverse(l List) List
- func Tail(l List) List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Foldl ¶
func Foldl(f func(carry interface{}, elem interface{}) interface{}, val interface{}, l List) interface{}
Foldl performs a left fold over the list
func Foldl1 ¶
func Foldl1(f func(interface{}, interface{}) interface{}, l List) interface{}
Foldl1 performs a left fold over the list using it's head as the initial element
func Foldr ¶
func Foldr(f func(interface{}, interface{}) interface{}, val interface{}, l List) interface{}
Foldr performs a right fold over the list
Types ¶
type List ¶
type List interface{}
List represents a lazily evaluated list type
Click to show internal directories.
Click to hide internal directories.