untrusted icon indicating copy to clipboard operation
untrusted copied to clipboard

Add `Input::first()` analogous to `slice::first()`

Open briansmith opened this issue 4 years ago • 0 comments
trafficstars

Instead of having people use as_slice_less_safe() as in input.as_slice_less_safe().first().ok_or(...)?, or having them go throw Reader, let them write input.first().ok_or(...)?.

briansmith avatar Jun 10 '21 23:06 briansmith