Created
March 1, 2012 01:04
-
-
Save DouglasAllen/1946365 to your computer and use it in GitHub Desktop.
My own puts for arrays
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
#!/usr/bin/env ruby | |
# puts_array.rb | |
a = [1,4,2,0,8,0,0,3,9] | |
p a | |
puts a.inspect | |
puts a | |
puts | |
# my own puts a | |
def po(array) | |
array.each do |i| | |
print i | |
end | |
end | |
po(a) | |
puts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment