map_

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package map_ provides unordered mutable.Map constructors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

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

Empty instantiates a Map with zero capacity.

func From

func From[K comparable, V any](next func() (K, V, bool)) *mutable.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) *mutable.Map[K, V]

New instantiates a Map with a predefined capacity.

func Of

func Of[K comparable, V any](elements ...c.KV[K, V]) *mutable.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