map_

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package map_ provides immutale ordered.Map constructors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From[K comparable, V any](next func() (K, V, bool)) ordered.Map[K, V]

From instantiates a map with key/values retrieved by the 'next' function. The next returns a key/value pairs with true or zero values with false if there are no more elements.

func New

func New[K comparable, V any](elements map[K]V, order []K) ordered.Map[K, V]

New instantiates a map and copies the elements to it

func Of

func Of[K comparable, V any](pairs ...c.KV[K, V]) ordered.Map[K, V]

Of instantiates a ap from the specified key/value pairs

Types

This section is empty.

Jump to

Keyboard shortcuts

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