package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Nov 6, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package mapit allows for native Go maps to be used with iterators.
Iterator functions:
- In - yields key-value pairs of a native Go map
- To - converts an iterator back to a native Go map
- Keys - yields the keys of a native Go map
- Values - yields the values of a native Go map
In returns an [GIterator] yielding Pair items in the given map.
Keys returns an [GIterator] yielding the keys of the given Go map.
To consumes an [Iterator] returning its Pair elements as a Go map.
Values returns an [GIterator] yielding the values of the given Go map.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.