一覧.値の一覧(values)
Python
py
dict1.values()
Swift
swift
Array(dict1.values)
Array
のイニシャライザに渡しているのは、そのままだと Dictionary.Keys
な型なので。
PHP
php
array_values($dct1)
TypeScript
ts
Array.from(map.keys());
Ruby
rb
dict1.values
PowerShell
powershell
$dict1.Values
C++
cpp
for(map<int,int>::iterator it = m.begin(); it != m.end(); ++it) { values.push_back(it->second); }
cpp
map<int, int> m;
vector<int> values;
for(map<int,int>::iterator it = m.begin(); it != m.end(); ++it) {
values.push_back(it->second);
}