Skip to content

Instantly share code, notes, and snippets.

let unitsElement(x) =
match x % 10 with
| 0 -> []
| x -> [ string x ]
let tensElement(x) =
string (x / 10 * 10)
let elementsFor2DigitNumber(x) =
match x with