Create the list k containing all the keys of the map m
k := make([]K, 0, len(m)) for key := range m { k = append(k, key) }
import "golang.org/x/exp/maps"
k := maps.Keys(m)
final k = m.keys;
import java.util.ArrayList; import java.util.List;
List<K> k = new ArrayList<>(m.keySet());
import static java.util.List.copyOf; import java.util.List;
List<K> k = copyOf(m.keySet());
@k = keys %m;
k = m.keys()
k = [*m.keys()]
k = list(m.keys())
k = m.keys
use std::collections::HashMap;
m.keys().collect::<Vec<_>>()
No security, no password. Other people might choose the same nickname.