Re: TIMTOWT concat / hypo-operators

2001-10-07 Thread Edwin Steiner
[EMAIL PROTECTED] (Edwin Steiner) writes: > @score +=^ (4,1) *^ @points; Sorry, I completely f...ed up the example. What I was thinking of would be more like: $score +=^ (4,1) ^* @points; So one hypo- and one hyper-operator. Assuming @points is 2-dimensional this would: 1) mu

Re: TIMTOWT concat / hypo-operators

2001-10-07 Thread Edwin Steiner
[EMAIL PROTECTED] (Jeremy Howard) writes: > Brent Dax wrote: > > Edwin Steiner: > > # Could there also be *hypo*-operators, i.e. operators which try to > > # *lower* (reduce) the dimensionality of their operands to the lowest > > # common dim. So [snip] > > I don't really see the use of hypo-opera

Re: TIMTOWT concat / hypo-operators

2001-10-07 Thread Damian Conway
> Well, it's pretty handy to be able to generalise what join() does > for concat to any abitrary function. It's covered by: > http://dev.perl.org/rfc/76.html which proposes a new reduce() > builtin. C is almost definitely in (in some form). That's why I used it in E3. > Edwin's

Re: TIMTOWT concat / hypo-operators

2001-10-06 Thread Jeremy Howard
Brent Dax wrote: > Edwin Steiner: > # Could there also be *hypo*-operators, i.e. operators which try to > # *lower* (reduce) the dimensionality of their operands to the lowest > # common dim. So > # > # $foo = 5 +^ (1,2); > # > # would set $foo to (5 + 1) + 2 <...> > # > > I don't really see the u

RE: TIMTOWT concat / hypo-operators

2001-10-06 Thread Brent Dax
Edwin Steiner: # Is this going to concat $a,$b and $c? # # $foo = _($a,$b,$c); # # (One way to save underlines and spaces.) # Or would that be: # # $foo = _@($a,$b,$c); That would be C<$foo=join('', $a, $b, $c)>, just like in Perl 5. # BTW: what will these do? # # $a _=_ ($b,$c

TIMTOWT concat / hypo-operators

2001-10-06 Thread Edwin Steiner
Hello! Is this going to concat $a,$b and $c? $foo = _($a,$b,$c); (One way to save underlines and spaces.) Or would that be: $foo = _@($a,$b,$c); BTW: what will these do? $a _=_ ($b,$c); $a ^_= ($b,$c); # (better with hypo-operator?, see below) (WIM in Perl