On Saturday, 25 November 2017 at 21:51:41 UTC, Dave Jones wrote:
What does the "inout" after front() do here...
Applies the `inout` modifier to the hidden `this` variable inside the function.
https://dlang.org/spec/function.html#inout-functionsIt basically makes it const inside the function, but on the outside, it matches whatever the constness was of the object it is called on.