# 一覧. キーの一覧(keys)

# C++

for(map<int,int>::iterator it = m.begin(); it != m.end(); ++it) { keys.push_back(it->first); }
map<int, int> m;
vector<int> keys;
for(map<int,int>::iterator it = m.begin(); it != m.end(); ++it) {
    keys.push_back(it->first);
}

# PHP

array_keys($d1)

# PowerShell

$d1.Keys

# Python

d1.keys()

# Ruby

d1.keys

[ 📩 ご意見 ]