vector

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package vector provides the Vector (ordered) implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[T any](elements []T) immutable.Vector[T]

New instantiates Vector and copies elements to it.

func Of

func Of[T any](elements ...T) immutable.Vector[T]

Of instantiates Vector with predefined elements.

func Sort

func Sort[t any, f constraints.Ordered](v immutable.Vector[t], by c.Converter[t, f]) immutable.Vector[t]

Sort instantiates Vector and puts sorted elements to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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