2005-09-10から1日間の記事一覧

Partial applicationその3

更に色々使ってみる。 def func (x : int, y : string, z : double) : void { System.Console.WriteLine ($"$x,$y,$z"); } // 引数となるタプル def t1 = (1, "two", 3.0); def t2 = (2, 4.0); def t3 = (3, "four"); func (t1); func (_, "three", _) (t2);…