Skip to content

cotrTypesMap

The JavaScript Map type.

Aliases:

  • cotrTypesMap
  • mapType
  • typeMap
  • hashmapType
  • structType
  • dictType
  • typeDict
  • typeScruct
  • map
  • hashmap
  • struct
  • dict

cpp

std::map<keyType, valueType>

csharp

Dictionary<keyType, valueType>

dart

Map<keyType, valueType>

go

map[keyType]valueType

haskell

Map k v

java

Map<keyType, valueType>

javascript

new Map()

javascriptreact

new Map()

kotlin

Map<keyType, valueType>

perl

%hash

php

// In PHP, associative arrays are used as maps.

powershell

Terminal window
[hashtable]

python

dict

r

# R does not have a built-in Map type. Use lists or data.frames for similar functionality.

ruby

Hash

rust

std::collections::HashMap<KeyType, ValueType>

scala

Map[keyType, valueType]

shellscript

Terminal window
# Bash uses associative arrays for maps:
declare -A myMap; myMap[key1]=value1; myMap[key2]=value2

swift

Dictionary<KeyType, ValueType>

typescript

Map<KeyType, ValueType>

typescriptreact

Map<KeyType, ValueType>