ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2021 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Problems.P95

Description

Part of Ninety-Nine Haskell Problems. Some solutions are in Solutions.P95.

Synopsis

Documentation

fullWords :: Integral a => a -> String Source #

On financial documents such as checks, numbers must sometimes be written in full words. For example, 175 must be written as "one-seven-five". Write a function to return non-negative integers in full words.

Examples

>>> fullWords 175
"one-seven-five"