2 ms·
Actually, just realized you can do everything with monads. (return [[10..20], [50..100]] >>= concat >>= classify >>= foldr getCount (0,0,0)) Just use the
by yummyfajitas 17y ago
Actually, just realized you can do everything with monads.
(return [[10..20], [50..100]] >>= concat >>= classify >>= foldr getCount (0,0,0))
Just use the identity monad rather than the list monad.