in reply to Re: perl6 matrix arrayof arrays
in thread perl6 matrix arrayof arrays

hello Ron

Thanks for you're reply. As i said : just starting with perl6.
Learning from the docs is not easy. But what you showed me was easy to understand

wanted to use the + in calculating the totals of each column. The way with sum is new to me.
Thanks for showing this option to do it an other way..

Replies are listed 'Best First'.
Re^3: perl6 matrix arrayof arrays
by mr_ron (Deacon) on Mar 22, 2018 at 19:13 UTC

    Since you describe the "docs" as "not easy", I am concerned that you are only looking at docs.perl6.org and not also looking at the tutorial level information at perl6.org/resources. Have you looked at tutorials or introductory books?

    A review of the tutorials led me to refine:

    for @arr { say ( .map: {.fmt: "%7.1f\t"} ).join }
    to be
    for @arr { say ($_>>.fmt: "%7.1f\t" ).join }
    Ron