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

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