Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3449

Re: who can eplain deeply the ruby's methods?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!news-transit.tcx.org.uk!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail
From savin max <mafei.198@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: who can eplain deeply the ruby's methods?
Date Sun, 24 Apr 2011 22:10:35 -0500
Organization Service de news de lacave.net
Lines 32
Message-ID <41787478075d1b2ca71a41f057bbeba3@ruby-forum.com> (permalink)
References <999670eb7a464b9d106f84fb7385d075@ruby-forum.com> <BANLkTik5+tZF74DiU1mhd5ikkCANgUh__g@mail.gmail.com> <e66077c212ee61d83ca98cea7e0fc6a6@ruby-forum.com> <BANLkTikXkRcQ30Cm2uaaLwZQDMtv=sAPVA@mail.gmail.com>
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1303701053 90866 65.111.164.187 (25 Apr 2011 03:10:53 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Mon, 25 Apr 2011 03:10:53 +0000 (UTC)
In-Reply-To <BANLkTikXkRcQ30Cm2uaaLwZQDMtv=sAPVA@mail.gmail.com>
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 382136
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <41787478075d1b2ca71a41f057bbeba3@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:3449

Show key headers only | View raw


Stu wrote in post #994785:
>
> *.each example with a simple hash and multidimensional array :
>
>>> {one: 1, two:2}.each {|x,y| p x; p y}
> :one
> 1
> :two
> 2
>  => {:one=>1, :two=>2}
>
>>> [[:one,1],[:two,2]].each{|x,y| p x; p y}
> :one
> 1
> :two
> 2
>  => [[:one, 1], [:two, 2]]
>
> A better example would be to put both the array and hash into a
> variable where one wouldn't even have to know what the variable data
> type was  but knew they could parse it without worry of implementation
> details or test with a million + one conditionals to figure out how to
> deal with the data.

I have just read your questions at this place, i think you are a deep 
thinking person.

thank you!~

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

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

who can eplain deeply the ruby's methods? savin max <mafei.198@gmail.com> - 2011-04-24 00:57 -0500
  Re: who can eplain deeply the ruby's methods? Stu <stu@rubyprogrammer.net> - 2011-04-24 03:46 -0500
    Re: who can eplain deeply the ruby's methods? Stu <stu@rubyprogrammer.net> - 2011-04-24 03:58 -0500
    Re: who can eplain deeply the ruby's methods? savin max <mafei.198@gmail.com> - 2011-04-24 08:18 -0500
      Re: who can eplain deeply the ruby's methods? Stu <stu@rubyprogrammer.net> - 2011-04-24 15:53 -0500
        Re: who can eplain deeply the ruby's methods? savin max <mafei.198@gmail.com> - 2011-04-24 22:10 -0500
  Re: who can eplain deeply the ruby's methods? 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-25 19:35 -0500
  Re: who can eplain deeply the ruby's methods? 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-25 19:57 -0500
    Re: who can eplain deeply the ruby's methods? savin max <mafei.198@gmail.com> - 2011-04-26 05:06 -0500

csiph-web