SyntaxFix
Write A Post
Hire A Developer
Questions
You can use:
a.slice!(0)
slice! generalizes to any index or range.