Youssef Shoaib [MOD]
01/19/2024, 8:39 AMarrow-context
, but if there's strong rational for why they'd be bad, then it's probably not worth wasting time on it.Alejandro Serrano.Mena
01/19/2024, 8:52 AMfold
your take empty value and combine function, not a single class containing both
• since Monoid has two methods, it's not possible to use Kotlin's lambda-conversion feature, so the code looked even harder to understand
• you had to pass the Monoid explicitly, even if you were using it in several placeAlejandro Serrano.Mena
01/19/2024, 8:52 AMYoussef Shoaib [MOD]
01/19/2024, 8:59 AMcombine
function really isn't a big issue at all.
I think I'll pass on it for now :)