2 ms·putStrLn =<< show . sum . take 3000000 . randomRs (0, 100::Int) `fmap` newStdGen That is truly beautiful.by rdtsc 15y agoputStrLn =<< show . sum . take 3000000 . randomRs (0, 100::Int) `fmap` newStdGen That is truly beautiful.mturmon 15y agoIn Matlab: >> tic;sum(rand(1,3e6));toc Elapsed time is 0.059096 seconds.jerf 15y agoIf you want to play golf I bet J can beat that. Haskell is not a domain-specific language as Matlab is.