aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/View/Plural.elm
blob: 6e480fde70062e48d1b515cbf09d2d7413202800 (plain)
1
2
3
4
5
6
7
module View.Plural
  ( plural
  ) where

plural : Int -> String -> String -> String
plural n single multiple =
  (toString n) ++ " " ++ if n <= 1 then single else multiple