Oops, missed the ending.
loop with a parens argument is like a C for with
3 args, init, test, next.
The next bit is:
($t, @ABC) »+=« (.01, dABC($t, @ABC, .01))
The » and « opops (or metaops) pack a whole lot of power but
can also be used for relatively simple cases like this one in which
they're just distributing the += to pairings of the left and right sides.
(But remember the infix + has also been redefined to distribute
over lists. All of » and « and Z and X in infix op slots are op ops
or metaops that distribute their ops to pairings of (elements of)
their arguments.)
.fmt("%+.3e")
is a method call, like ->fmt in P5.
Here is its doc:
https://docs.perl6.org/routine/fmt
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/