in reply to Re: Perl Weekly Challenge 206 with List::Util
in thread Perl Weekly Challenge 206 with List::Util

Are you saying descending is better than ascending? 🤷🏻‍♂️

The task guaranties even numbered lists, and it doesn't matter in which direction I sum up.

Tho I could have avoided sum map ... pairs with a for loop and a

inside, hence avoiding the dependency on List::Util

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^3: Perl Weekly Challenge 206 with List::Util
by hv (Prior) on Mar 17, 2023 at 19:42 UTC

    My apologies, I misread the question: somehow I got it into my head that we wanted the sum of at most two numbers.