map_

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package map_ provides immutable.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)) immutable.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) immutable.Map[K, V]

New instantiates Map and copies elements to it

func Of

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