index
:
aoc-2023
feature/day17
main
Advent of Code 2023 - I'm still learning Lean4, so please don't judge.
Andreas Grois
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
Common
/
Char.lean
blob: f24a553de57c3b863f3ace7a23bae81240f65373 (
plain
) (
blame
)
1
2
3
4
namespace
Char
def
asDigit
(
d
:
Char
)
(
_
:
Char
.
isDigit
d
=
true
)
:
Nat
:=
d
.
toNat
-
48