Created
February 10, 2015 16:39
-
-
Save ufcpp/5b6d50b002fe85605d22 to your computer and use it in GitHub Desktop.
Tuple literals, mirroring argument lists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(int sum, int count) result = (1, 2); // 左辺の型を見て | |
var result = (sum: 1, count: 2); // 名前付き引数の要領で、右辺から型推論 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment