Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 2.71 KB

File metadata and controls

46 lines (30 loc) · 2.71 KB

QuickData.Digits.FSharp

DigitSpellPolicy

Defines the policies available for use when creating words from a sequence of Digit.

The DigitSpellPolicy Type

The DigitSpellPolicy type defines a discriminated union used to specify the policy for use when creating words from a sequence of Digit.

The cases are:

Case Name Meaning
AsSingleDigitsZero *1 Each digit will be spelt individually, with Zero being spelt as "zero"
AsSingleDigitsOh Each digit will be spelt individually, with Zero being spelt as "oh"
AsDoubleDigitsZero Digits will be paired, from left to right, with Zero being spelt as "zero"
AsDoubleDigitsOh Digits will be paired, from left to right, with Zero being spelt as "oh"
AsTelephoneBasic Spell the digits as they might be written if one were to write a telephone number without numerals *2
  • *1 : The default case.
  • *2 : This is not a 'perfect' implementation and the result might not be what everyone would want.

To specify a digit spell policy simply supply its name, such as DigitSpellPolicy.AsSingleDigitsOh.

See the Digit.Seq documentation for examples of usage.

Discriminated Union Identity Values

Functions are available for converting to and from POCO types and DU cases. See the overview documentation for more information about these.

Exception-free Processing

Exception-free processing versions - FailSafe, Option, and Result - of some functions are available. See the overview documentation for more information about these.

Issues, Questions, and Suggestions

You can visit the QuickData.FSharp GitHub repository to report issues, ask questions, or make suggestions. You can also read about the changes across different versions in the release notes there.