Skip to content

Commit

Permalink
fix:Correct aggregation signature specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Jun 11, 2024
1 parent 144852e commit 6cf44d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Data/Reshapers/ToWideFormat.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ unit module Data::Reshapers::ToWideFormat;
#===========================================================
our proto auto-aggregator(|) is export {*}

multi auto-aggregator(Num @vec ) { @vec.sum }
multi auto-aggregator(@vec where @vec.all ~~ Numeric:D) { @vec.sum }

multi auto-aggregator(Str @vec) { @vec.join(', ') }
multi auto-aggregator(@vec where @vec.all ~~ Str:D) { @vec.join(', ') }

multi auto-aggregator($vec) {
my Num @arr;
Expand Down

0 comments on commit 6cf44d7

Please sign in to comment.