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
Converting a slice into an iterator purely to get the last element of it is unnecessary, but if someone is not aware of [T]::last (like I was) would cargo cult the "turn into iterator and get the first/last element" pattern.