You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current vec::last returns an option if there are no elements to return, while all the related functions fail. vec::last should just fail as well when the vec is empty
The text was updated successfully, but these errors were encountered:
I'm renaming last_total to last_unsafe. IMO the other functions should return an option too rather than failing, and variants that fail should have "unsafe" in the name. (Using a word other than "unsafe" would be ok with me, I just can't think of anything better.)
The current
vec::last
returns an option if there are no elements to return, while all the related functions fail.vec::last
should just fail as well when the vec is emptyThe text was updated successfully, but these errors were encountered: