Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
List defines an integer indexable mapper It panics when the element type cannot be (un/)marshalled by the codec
func (List) Delete ¶
Delete() deletes the element in the given position Other elements' indices are preserved after deletion Panics when the index is out of range
func (List) Get ¶
Get() returns the element by its index
func (List) Iterate ¶
CONTRACT: No writes may happen within a domain while iterating over it.
func (List) Len ¶
Len() returns the length of the list The length is only increased by Push() and not decreased List dosen't check if an index is in bounds The user should check Len() before doing any actions
Click to show internal directories.
Click to hide internal directories.