lean4-htt/tests/compiler/map_big.lean
2019-03-21 15:11:05 -07:00

8 lines
214 B
Text

def f2 (n : Nat) (xs : List Nat) : List (List Nat) :=
let ys := List.repeat 0 n in
xs.map (λ x, x :: ys)
def main : IO UInt32 :=
let n := 100000 in
IO.println (toString (f2 n (List.repeat 0 n)).length) *>
pure 0