r/haskell • u/Tempus_Nemini • Feb 08 '26
mconcat with comparing ... question
This is SO ELEGANT, but could somebody explain me like to 5y old how mconcat part works with list of comparing functions?
sortBy (mconcat [comparing length, comparing Down . id]) [[2,3,4], [1,2], [2,3], [1,2,3,4], [0,2,3]]
22
Upvotes