map_

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package map_ provides mutable ordered.Map constructors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty[K comparable, V any]() *ordered.Map[K, V]

Empty instantiates a map with zero capacity

func From

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

From instantiates a map with elements obtained by passing the 'loop' function

func New

func New[K comparable, V any](capacity int) *ordered.Map[K, V]

New instantiates a map with a predefined capacity

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