▲ | LorenDB 7 days ago | |
Reminds me of D's Uniform Function Call Syntax[0], which allows you to rewrite bar(foo(sort(myArray))) as myArray.sort().foo().bar(). The difference is that D allows extra function arguments, keeping the passed-in value as the first argument. So you could have myArray.sort().writeln("extra text"), for example. [0]: https://tour.dlang.org/tour/en/gems/uniform-function-call-sy... |