On Saturday, 1 November 2014 at 14:01:42 UTC, Nordlöw wrote:
On Saturday, 1 November 2014 at 13:36:05 UTC, anonymous wrote:
I don't see what you'd need inout for here. stealFront/stealBack are not methods.

inout can be used on free functions aswell. See for example

https://github.com/nordlow/justd/blob/master/algorithm_ex.d#L674

Sure, but it doesn't buy you anything in these cases, does it? You can just drop inout from overlapInOrder. It's fully templated. T can be const/immutable and you get a const/immutable result. Works fine.

Reply via email to