auto h = r.front; // can get the front of the range
https://github.com/dlang/phobos/blob/v2.072.1/std/range/primitives.d#L168It doesn't take into consideration that front exists and that it's a reference to a struct that can't be copied. There was a discussion a while back to change it but it seems nothing came of it.