Invoca / magic_frozen_string_literal

easily add '# frozen_string_literal: true' comments to the top of all your project's Ruby files
MIT License
159 stars 16 forks source link

Simplify `.insert(0, …)` to `.unshift(…)` #13

Closed roryokane closed 6 years ago

roryokane commented 8 years ago

This is simpler and probably faster. It mirrors the existing use of .shift.

Docs: #unshift, #insert