Documentation
¶
Index ¶
- type Int
- type Int64
- type List
- func (l *List) Clear()
- func (l *List) Contains(value interface{}) bool
- func (l *List) Filter(f func(interface{}) bool) *List
- func (l *List) Find(f func(interface{}) bool) interface{}
- func (l *List) First() interface{}
- func (l *List) ForEach(f func(interface{}) (stop bool))
- func (l *List) Get(index int) interface{}
- func (l *List) IndexOf(value interface{}) int
- func (l *List) Iterator() []interface{}
- func (l *List) Last() interface{}
- func (l *List) Length() int
- func (l *List) Map(f func(interface{}) interface{}) *List
- func (l *List) Pop() interface{}
- func (l *List) Push(value interface{})
- func (l *List) Reduce(f func(interface{}, interface{}) interface{}) interface{}
- func (l *List) Reverse() *List
- func (l *List) Shift() interface{}
- func (l *List) Size() int
- func (l *List) Slice(start int, end int) *List
- func (l *List) Splice(index int, count int) *List
- func (l *List) Swap(index1 int, index2 int)
- func (l *List) ToSlice() []interface{}
- func (l *List) Unshift(value interface{})
- type Map
- func (m *Map) Clear()
- func (m *Map) Del(key string)
- func (m *Map) Get(key string) interface{}
- func (m *Map) Has(key string) bool
- func (m *Map) Iterator() map[string]interface{}
- func (m *Map) Keys() []string
- func (m *Map) Set(key string, value interface{})
- func (m *Map) ToMap() map[string]interface{}
- type Queue
- type Stack
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶ added in v1.0.7
List ...
func (*List) Clear ¶ added in v1.0.7
func (l *List) Clear()
Clear removes all elements from the list
func (*List) Contains ¶ added in v1.0.7
Contains returns true if the list contains the given element
func (*List) Filter ¶ added in v1.0.7
Filter returns a new list with all elements that satisfy the given function
func (*List) Find ¶ added in v1.0.7
Find returns the first element that satisfies the given function
func (*List) First ¶ added in v1.0.7
func (l *List) First() interface{}
First returns the first element of the list
func (*List) ForEach ¶ added in v1.0.7
ForEach iterates over the list and calls the given function for each element
func (*List) Iterator ¶ added in v1.0.8
func (l *List) Iterator() []interface{}
Iterator returns a channel that will yield successive elements of the list
func (*List) Last ¶ added in v1.0.7
func (l *List) Last() interface{}
Last returns the last element of the list
func (*List) Map ¶ added in v1.0.7
Map returns a new list with the result of calling the given function on each element
func (*List) Pop ¶ added in v1.0.7
func (l *List) Pop() interface{}
Pop removes and returns the last element of the list
func (*List) Push ¶ added in v1.0.7
func (l *List) Push(value interface{})
Push adds an element to the end of the list
func (*List) Reduce ¶ added in v1.0.7
func (l *List) Reduce(f func(interface{}, interface{}) interface{}) interface{}
Reduce returns the result of reducing the list to a single value
func (*List) Shift ¶ added in v1.0.7
func (l *List) Shift() interface{}
Shift removes and returns the first element of the list
func (*List) Slice ¶ added in v1.0.7
Slice returns a new list with a copy of a given number of elements from the given index
func (*List) Splice ¶ added in v1.0.7
Splice removes the given number of elements from the given index
type Map ¶ added in v1.0.7
Map ...
func (*Map) Iterator ¶ added in v1.0.8
Iterator returns a channel that will yield all the keys and values in the map
type Queue ¶ added in v1.0.7
Queue ...
func (*Queue) Back ¶ added in v1.0.7
func (q *Queue) Back() interface{}
Back returns the last element of the queue
func (*Queue) Clear ¶ added in v1.0.7
func (q *Queue) Clear()
Clear removes all elements from the queue
func (*Queue) Dequeue ¶ added in v1.0.7
func (q *Queue) Dequeue() interface{}
Dequeue removes and returns the first element of the queue
func (*Queue) Enqueue ¶ added in v1.0.7
func (q *Queue) Enqueue(value interface{})
Enqueue adds an element to the end of the queue
func (*Queue) Front ¶ added in v1.0.7
func (q *Queue) Front() interface{}
Front returns the first element of the queue
type Stack ¶ added in v1.0.7
Stack ...