Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
compile_bench
/
nat_repr.lean
blob: c71c9378c3033e8aa801c142e40a73337a8d05fa [
file
]
def
main
:
List
String
→
IO
Unit
|
[
n
]
=>
do
let
mut s
:=
0
for
i
in
*...
n
.
toNat
!
do
for
j
in
*...
i
do
s
:=
s
+
j
.
repr
.
length
IO
.
println s
|
_
=>
throw
$ IO
.
userError
"give upper bound"