static short[] repF_shortArray(int n, O f, O... args) {
  short[] a = new short[n];
  for i to n:
    a[i] = toShort(callF(f, args));
  ret a;
}

static short[] mapLike repF_shortArray(O f, int n) {
  ret repF_shortArray(n, f);
}

static short[] repF_shortArray(int n, IF0<Number> f) {
  ret repF_shortArray(f, n);
}