delete_at can delete an element based on its index : delete_at « Array « Ruby






delete_at can delete an element based on its index


month_a = %w[ nil jan feb mar apr may jun jul aug sep oct nov dec ] 
month_a.delete_at( 12 ) 

p month_a

 

Related examples in the same category