vector

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty[T any]() *mutable.Vector[T]

Empty creates the Vector with zero capacity.

func New

func New[T any](capacity int) *mutable.Vector[T]

New creates a vector with a predefined capacity.

func Of

func Of[T any](elements ...T) *mutable.Vector[T]

Of creates the Vector with predefined elements.

func Sort

func Sort[T any, F constraints.Ordered](v *mutable.Vector[T], by c.Converter[T, F]) *mutable.Vector[T]

Sort sorts a Vector in-place by a converter that thransforms a element to an Ordered (int, string and so on).

Types

This section is empty.

Jump to

Keyboard shortcuts

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