I am learning about the arrays right now in Swift. While trying to reverse an array
var array = [1, 2, 3]
var rev = array.reversed()
print (rev)
I get this output
ReversedRandomAccessCollection<Array<int>>(_base: [1, 2, 3])
No idea why it does pop up instead of a reversed array. I am working on linux (Ubuntu)
Please help me and tell what is wrong. Thanks.