Same as frontOr except it throws an error if it can't get the value
the value to resolve
the value to throw if value cannot be resolved
import std.exception: assertThrown, assertNotThrown; "" .frontOrThrow(new Exception("")) .assertThrown!Exception; auto b = "yo" .frontOrThrow(new Exception("")) .assertNotThrown!Exception; assert(b == 'y');
See Implementation
Same as frontOr except it throws an error if it can't get the value