Ruby on Rails Monday, July 2, 2012

Dear friends,

What is different between these two array method.

First Array Method

arr = ps_array["1"]
arr += ps_array["2"]
arr += ps_array["3"]


Second Array Method

arr = [ps_array["1"],ps_array["2"],ps_array["3"]]


yours,

phoesan

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

No comments:

Post a Comment