oset

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package oset provides the ordered set container implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[T comparable](elements []T) ordered.Set[T]

New instantiates Set and copies elements to it.

func Of

func Of[T comparable](elements ...T) ordered.Set[T]

Of instantiates Set with predefined elements.

func Sort

func Sort[T comparable, f constraints.Ordered](s ordered.Set[T], by c.Converter[T, f]) ordered.Set[T]

Sort instantiates Set 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