diff options
| author | Andreas Grois <andi@grois.info> | 2023-12-03 21:13:47 +0100 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2023-12-03 21:13:47 +0100 |
| commit | 0cdb5a2449c996e54a0c777dd807785d3016fd66 (patch) | |
| tree | 40f1ffe9a46fe2d342c37204361ee1d2c897110a /Common/Char.lean | |
| parent | d09a6869fea6f0d79c57e4ff756e21e03d395d52 (diff) | |
Day 3
Diffstat (limited to 'Common/Char.lean')
| -rw-r--r-- | Common/Char.lean | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Common/Char.lean b/Common/Char.lean new file mode 100644 index 0000000..9c727eb --- /dev/null +++ b/Common/Char.lean @@ -0,0 +1,4 @@ +namespace Char + +def asDigit (d : Char) (ok : Char.isDigit d = true) : Nat := + d.toNat - 48 |
