Find previous & next in array

My array is [:a,:b,:c,:d,:e,:f].