monkey2 icon indicating copy to clipboard operation
monkey2 copied to clipboard

[feature request] Stack.First and Stack.Last properties

Open engor opened this issue 7 years ago • 0 comments

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.

engor avatar Aug 03 '18 16:08 engor