lean4-htt/tests/compiler/append.lean
Leonardo de Moura b1c187f717 feat(library/compiler): allow io unit as main function result type
When `io unit` is used, we use `return 0` for `result.ok`, and `return
1` for `result.except`.
2019-03-16 16:05:45 -07:00

4 lines
156 B
Text

def main (xs : list string) : io unit :=
let ys1 := list.repeat 1 1000000 in
let ys2 := list.repeat 2 1000000 in
io.println (to_string (ys1 ++ ys2).length)