Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Using Delete_at In Ruby

DZone's Guide to

Using Delete_at In Ruby

·
Free Resource
Source: Class: Array [ruby-doc.org]

a = %w( ant bat cat dog )
a.delete_at(2)    #=> "cat"
a                 #=> ["ant", "bat", "dog"]
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}