lean4-htt/tests/compiler/map_big.lean
2019-07-02 13:22:11 -07:00

8 lines
223 B
Text

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