Ruby on Rails Blog
Ruby on rails blog
Saturday, July 31, 2010
Ruby string array converted into integer array
["1","2","3","4"].map(&:to_i) => [1, 2, 3, 4]
OR
["1","2","3","4"].collect(&:to_i) => [1, 2, 3, 4]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment