-
-
Save anonymous/c24f0d5ec4b5e7ee7e65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pp' | |
num_length = 10 | |
a = ["91665865753", "91", "324", "878", "994"] | |
a.each do |num| | |
if num.length.to_i < num_length | |
a.delete(num) | |
end | |
end | |
pp a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment