Skip to content

連想配列 #225

Description

@syuilo

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

構文案

let obj = {
  a: 42
}

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

<: map[obj] // "hoge"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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