Skip to content

Instantly share code, notes, and snippets.

@ufcpp
Created February 10, 2015 16:39
Show Gist options
  • Save ufcpp/5b6d50b002fe85605d22 to your computer and use it in GitHub Desktop.
Save ufcpp/5b6d50b002fe85605d22 to your computer and use it in GitHub Desktop.
Tuple literals, mirroring argument lists
(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