Skip to content

連想配列 #225

Open
Open
@syuilo

Description

@syuilo

オブジェクトとは異なり、任意の値をキーにできる

構文案

let obj = {
  a: 42
}

let map = &{
  1: 42
  "adfadgf": "sdfgsfgsfg"
  obj: "hoge"
}

<: map[obj] // "hoge"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions