core-lang / core

The Core Programming Language
https://core-lang.dev
MIT License
45 stars 1 forks source link

add support for multiple vararg parameters ... #32

Open soc opened 2 years ago

soc commented 2 years ago

... that use named arguments for invocation:

impl Map {
  @static fun of[K, V](keys: K*, vals: V*): Map[K, V] = ...
}

Map.of(
  keys = "Paris", "Rome", "Madrid",
  vals = "France", "Italy", "Spain")