static O[] mapToObjectArray(Map map) {
  new L l;
  for (O o : keys(map)) {
    l.add(o);
    l.add(map.get(o));
  }
  ret toObjectArray(l);
}
static O[] mapToObjectArray(O f, Cl l) {
  int n = l(l);
  O[] array = new[n];
  if (n != 0) {
    Iterator it = iterator(l);
    for i to n:
      array[i] = callF(f, it.next());
  }
  ret array;
}
static O[] mapToObjectArray(O f, O[] l) {
  int n = l(l);
  O[] array = new[n];
  for i to n:
    array[i] = callF(f, l[i]);
  ret array;
}
static  O[] mapToObjectArray(Cl l, IF1 f) {
  ret mapToObjectArray(f, l);
}
static  O[] mapToObjectArray(A[] l, IF1 f) {
  ret mapToObjectArray(f, l);
}
static  O[] lambdaMapLike mapToObjectArray(IF1 f, A[] l) {
  int n = l(l);
  O[] array = new[n];
  for i to n:
    array[i] = f.get(l[i]);
  ret array;
}
static  O[] lambdaMapLike mapToObjectArray(IF1 f, Cl l) {
  int n = l(l);
  O[] array = new[n];
  if (n != 0) {
    Iterator it = iterator(l);
    for i to n:
      array[i] = callF(f, it.next());
  }
  ret array;
}