Re: Request for Eu 2.4
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 04, 2003
- 660 views
On Mon, 3 Feb 2003 18:54:54 -0500, <jbrown1050 at hotpop.com> wrote: > > I agree. > > Also, perhaps this idea should be thrown to the OpenEU mailing list, > and see what happens there? > > jbrown > > On Mon, Feb 03, 2003 at 03:31:27PM -0800, xerox_irs at lvcm.com wrote: >> >> something else taht would be great is if this >> atom a,b,c,d >> sequence z >> z={1,2,3,4} >> {a,b,c,d}=z >> so that a=1, b=2, c=3,d=4 that would be cool!!!!!!!!! >> [snip] It already has. Its the desequencing operator idea. object a,b,c,d sequence z z={1,2,3,4} |a,b,c,d| ?= z Also the slice extention that caters for... y = z[3,4,1..2] that would return a sequence {3, 4, {1,2}} So that together you could do.. |a,b| ?= z[2,4] which is equivalent to ... a = z[2] b = z[4] The special desequencing operation '?=' is needed 'cos we also want to do this... |a,b,c,d| = z which would assign all of z to each of a, b, c, and d. -- cheers, Derek Parnell