Skip to documentation
SplitScript
  • Language
  • Standard library
  • Guides
  • Migration

SplitScript reference / MapEntry<K, V> / key

MapEntry<K, V>.key

field

MapEntry<K, V>.key: K

Key stored by this entry.

The key is the same value that was supplied when the entry was inserted.

Examples

Read an entry key

let routes = Map.new<String, u32>()
routes["Atrium"] = 12
for entry in routes {
    print(entry.key)
}
Generated from the SplitScript compiler's documentation catalogs.