vector

package
v0.0.0-...-a2a747e Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2016 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Basic Vector module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vector

type Vector []interface{}

func New

func New() *Vector

create a new instance of Vector returning the pointer

func (*Vector) Add

func (p *Vector) Add(elem interface{})

add a element

func (*Vector) AddAt

func (p *Vector) AddAt(elem interface{}, i int)

add a element at given position

func (*Vector) At

func (p *Vector) At(i int) interface{}

return the i'th element

func (*Vector) Contains

func (p *Vector) Contains(elem interface{}) bool

check if element is present

func (*Vector) DeleteFirst

func (p *Vector) DeleteFirst()

delete the first element

func (*Vector) DeleteLast

func (p *Vector) DeleteLast()

delete the last element

func (*Vector) Len

func (p *Vector) Len() int

return the length of the Vector

Jump to

Keyboard shortcuts

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