Re: Request for Eu 2.4
- Posted by xerox_irs at lvcm.com Feb 05, 2003
- 517 views
Another thing that would be good is if you could assign a variable a part of another so atom a sequence b b={1,2,3,4} a=assign(b,2) a=5 now b={1,5,3,4} b[2]=7 now a=7 and if b[2]={2} then it gives a type check error because "a" is an "atom" !!!! that would be very very useful, and faster!!!!! than always subscripting ----- Original Message ----- From: <xerox_irs at lvcm.com> To: EUforum <EUforum at topica.com> Sent: Monday, February 03, 2003 3:31 PM Subject: Re: Request for Eu 2.4 > > 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!!!!!!!!! > > ----- Original Message ----- > From: <xerox_irs at lvcm.com> > To: EUforum <EUforum at topica.com> > Sent: Sunday, February 02, 2003 2:19 PM > Subject: Re: Request for Eu 2.4 > > > > I purpose somthing like > > sequence a,b > > a={1,2,3,4,5} > > b={1,3,5} > > ? a[{1,3,5}] > > ? a[b] > > > > outputs being > > {1,3,5} > > {1,3,5} > > > > ----- Original Message ----- > > From: Greg Haberek <g.haberek at comcast.net> > > To: EUforum <EUforum at topica.com> > > Sent: Sunday, February 02, 2003 11:22 AM > > Subject: Request for Eu 2.4 > > > > > > > Rob, > > > I would possibly like to see a way to index individual parts of a > > sequence.. > > > > > > Here is an example: > > > > > > -- begin example code -- > > > sequence my_stuff > > > > > > my_stuff = "ABCDEFG" > > > > > > ? my_stuff[ 2, 4, 6 ] > > > -- output: "BDF" > > > > > > -- rather than: > > > > > > ? my_stuff[2] & my_stuff[4] & my_stuff[6] > > > -- output: "BDF" > > > > > > -- end example code -- > > > > > > > > > right now I use a function, but this may make a nice feature > > > > > > ~Greg > > > g.haberek at comcast.net > > > > > > > > > TOPICA - Start your own email discussion group. FREE! > > > > > > > TOPICA - Start your own email discussion group. FREE! > > > > > > TOPICA - Start your own email discussion group. FREE! >