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 use of hypo-operators.
>
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.

Edwin's idea was that this could be done with an adverb just like '^' does
for element-wise array operations. Such an approach has been used
successfully in other languages, but I haven't seen any indication that
Larry and Damian are considering this for P6.


Reply via email to