monkey2
monkey2 copied to clipboard
[feature request] Stack.First and Stack.Last properties
I use these extension properties:
Class Stack<T> Extension
Property First:T()
Return Self.Length ? Self[0] Else Null
End
Property Last:T()
Return Self.Length ? Self[Self.Length-1] Else Null
End
End
Would be nice to have them out of the box.