Uniform function call syntax: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 14:
v2 = (x: 5, y: -2)
// all the following are correct and equivalent
v3 = add(v1, v2)
v4 = v1.add(v2)
Line 41 ⟶ 42:
auto a = [0, 1, 2, 3];
 
// Allall the following are correct and equivalent
int b = first(a);
int c = a.first();
int d = a.first;
 
// Chainingchaining
int[] e = a.addone().addone();
}