ZenScript main repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Assoc.zs 189B

12345678
  1. export expand <K, V> V[K] {
  2. mapValues<W>(projection as function(value as V) as W) as W[K] {
  3. val result = new W[K];
  4. for k, v in this
  5. result[k] = projection(v);
  6. return result;
  7. }
  8. }