3 ms·Perhaps this might help (or perhaps not!) > [1,-2,3] >>= (\x -> replicate (abs x) x) [1,-2,-2,3,3,3]by tome 9y agoPerhaps this might help (or perhaps not!) > [1,-2,3] >>= (\x -> replicate (abs x) x) [1,-2,-2,3,3,3]