title: Summing list of lists in Raku
body: <p>I am trying to sum a list of lists in Raku. Example taken from <a href="https://github.com/python/cpython/blob/main/Lib/statistics.py#L168" rel="noreferrer">here</a>:</p>
  <pre><code>
  my $arr = ([1e50, 1, -1e50] xx 1000);
  
  say (flat |$arr).sum; # output 0
  
  # https://docs.raku.org/language/operators#infix_xx
  # https://docs.raku.org/routine/flat
  
  </code></pre>
  <p>It outputs <code>0</code> which is not what was expected (1000). However, this works right</p>
  <pre><code>say ([1, 2] xx 5).flat.sum;
  </code></pre>
  <p>Why is behavior different? Is it due to precision?</p>
  <p>Another thing is</p>
  <pre><code>my $arr = ([1e50, 1, -1e50] xx 1000);
  my @array = $arr.flat;
  </code></pre>
  <p>how can I make every element of this flattened list to <code>float</code> efficiently?</p>
  <p>One way I know is iterating every element of this list and calling <code>Num</code> method.</p>
  <pre><code>my $arr = [1, 2] xx 5; #([1e50, 1, -1e50] xx 10);
  
  my @array = $arr.flat;
  for @array {$_=$_.Num};
  </code></pre>