[ioke-dev] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Tuples for Ioke
- From: Ola Bini <ola.bini@gmail.com>
- To: dev@ioke.kenai.com
- Subject: [ioke-dev] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Tuples for Ioke
- Date: Fri, 01 May 2009 08:25:34 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=sWAn3HxFpLV6DN/eY2Co1imp/Ehu4SVQU7Ur7GyZVoojG3N5dB1FkiBM+tlEhwn2OT QVeCMVpkq5hNdqlZa6fgTDGRudbq6usas1/Zr4IZIBJs+FmwTL1Uu+2MV/vf1q2UAI3g o4ok5N9z9TW2+ioRKI8ni5oBH2j4ELXsCODXY=
Sam Aaron wrote:
In the same way Ruby allows for splatted arrays to be assigned?Good point. I hadn't actually thought about it that way. But that's not really it either. Say we have a tuple of tuples, something like this:
x = (42, (13, 17, 23), 7)
Then I see this being possible to destructure directly in assignment:
(q, (u, v, w), z) = x
That's a bit different from splatting arrays in Ruby.
Cheers
--
Ola Bini (http://olabini.com) Ioke creator (http://ioke.org)
JRuby Core Developer (http://jruby.org)
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)
"Yields falsehood when quined" yields falsehood when quined.
|
[ioke-dev] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Tuples for Ioke |
Ola Bini | 05/01/2009 |
|
<Possible follow-up(s)> |
||
|
[ioke-dev] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Tuples for Ioke |
Ola Bini | 05/01/2009 |
|
[ioke-dev] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Tuples for Ioke |
Martin Dobmeier | 05/01/2009 |





