Skip to contents

IndexMap<String, T>: unique string keys in insertion order, a named list in R and an array of {"name", "value"} pairs in JSON. Order is part of the value, its equality, and its hash.

Usage

index_map(type, keys = NULL)

Arguments

type

An r8_field_type or an R8 type: The value type.

keys

Optional r8_field_type: A type_character() constraining the keys.

Value

An r8_field_type.

Examples

index_map(type_double())
#> <r8 field type> ordered map of double