frontOrThrow

fnauto frontOrThrow(T)(T range) if (isInputRange!T)

Get the first element of a range or throw an exception