-- http://www.codewars.com/kata/5274e122fc75c0943d000148
module Codewars.Commas where

import Data.List
import Data.List.Split

groupByCommas :: Int -> String
groupByCommas = reverse . intercalate "," . chunksOf 3 . reverse . show 