static <A, B> L<A> keysList(Map<A, B> map) {
  ret cloneListSynchronizingOn(keys(map), map);
}

ifclass MultiSet
  static <A> L<A> keysList(MultiSet<A> ms) {
    ret ms == null ? null : keysList(ms.map);
  }
endif