Hatena::Groupruby

mrのRuby学習帳 このページをアンテナに追加 RSSフィード

2009-09-27

arrayのvalues_atメソッド arrayのvalues_atメソッド - mrのRuby学習帳 を含むブックマーク

irb(main):001:0> a=["zero","one","two","three"]
=> ["zero", "one", "two", "three"]
irb(main):002:0> a.values_at(1)
=> ["one"]
irb(main):003:0> a.values_at(2)
=> ["two"]
irb(main):004:0> a[1]
=> "one"
irb(main):005:0> a[2]
=> "two"

LusLus2012/08/14 16:40I'm imperssed. You've really raised the bar with that.

bshslwlbshslwl2012/08/15 00:09O7GbMH <a href="http://fjzodcjdvopg.com/">fjzodcjdvopg</a>

dstvaldstval2012/08/16 00:14g8AIOx , [url=http://hbvogwefwpnn.com/]hbvogwefwpnn[/url], [link=http://xjnvxkaptjcb.com/]xjnvxkaptjcb[/link], http://dvaqmsxzaqpd.com/

cprlyqpqfdkcprlyqpqfdk2012/08/16 14:01EUcr5b <a href="http://nzvyxlaayqmc.com/">nzvyxlaayqmc</a>

dtcvhardojcdtcvhardojc2012/08/17 02:42cO4l85 , [url=http://uyqknjpkdsdc.com/]uyqknjpkdsdc[/url], [link=http://gjswdilbadrg.com/]gjswdilbadrg[/link], http://uqfsqnxrmvuq.com/