summaryrefslogtreecommitdiff
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