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: 9c727eb54a5f9bd367769f07612db59e8cef1ad7 (
plain
) (
blame
)
1
2
3
4
namespace
Char
def
asDigit
(
d
:
Char
)
(
ok
:
Char
.
isDigit
d
=
true
)
:
Nat
:=
d
.
toNat
-
48