mapi

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package mapi provides helper incrementals for working with maps.

Specifically these incrementals will typically deal in _diffs_ by keys of maps between stabilizations, letting the computation focus on what has changed within maps between those stabilizations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Added

func Added[M ~map[K]V, K comparable, V any](scope incr.Scope, i incr.Incr[M]) incr.Incr[M]

Added returns an incremental node whose value is just the added keys (and their associated values) of an input map between stabilizations.

func Removed

func Removed[M ~map[K]V, K comparable, V any](scope incr.Scope, i incr.Incr[M]) incr.Incr[M]

Removed returns an incremental node whose value is just the removed keys (and their associated values) of an input map between stabilizations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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