Yes it is faster than the other methods: >> a: 2 b: 3 d: now/precise loop 500000 [t: (1x0 * a) + (0x1 * b)] difference now/precise d =3D=3D 0:00:00.187
>> a: 2 b: 3 d: now/precise loop 500000 [t: as-pair a b] difference now/precise d =3D=3D 0:00:00.281 > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of Maxim Olivier-Adlhoch > Sent: Wednesday, November 11, 2009 12:56 PM > To: [email protected] > Subject: [REBOL] Re: dynamic pairs >=20 >=20 > and the fastest method is: >=20 > p: (1x0 * a) + (0x1 * b) >=20 >=20 > -MAx >=20 > 2009/11/9 sqlab <[email protected]>: > > > > =3DA0>> p: =3DA0as-pair a b > > =3D3D=3D3D 1x2 > > > > is enough or > > > > =3DA0>> p: to-pair reduce [a b] > > =3D3D=3D3D 1x2 > > > > > > > > On 09.11.2009 14:00, Semseddin Moldibi [ Bircom ] wrote: > >> p: make pair! as-pair a b > >> > >> should work. > >> > >> > >>> Hi! > >>> =3D3D20 > >>> I'd like to use variables in a make statement for creating pairs: > >>> =3D3D20 > >>> a: 1 > >>> b: 2 > >>> p: make pair! [a b] does not work for me. > >>> =3D3D20 > >>> tia > >>> =3D3D20 > >>> Peter Bj=3D3DF6rk > >>> =3D3D20 > >>> Schweizerische Depeschenagentur Ag > >>> =3D3D20 > >>> L=3D3DE4ngassstrasse 7 > >>> CH-3012 Berne > >>> =3D3D20 > >>> Tel-M: +41-31-775 9892 > >>> Tel-G: +41-31-309 3986 > >>> =3D3D20 > >>> E-Mail: [email protected] > >>> -- > >>> To unsubscribe from the list, just send an email to > >>> lists at rebol.com with unsubscribe as the subject. > >>> > >> > > > > -- > > To unsubscribe from the list, just send an email to > > lists at rebol.com with unsubscribe as the subject. > > > > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
