lean4-htt/tests/lean/1292.lean
2022-07-07 22:59:18 -07:00

17 lines
402 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

def test : Nat :=
let inp : Array (Option Nat × Nat) := #[(some 0, 0), (none, 0)]
let fvars : Array Nat := inp.filterMap fun
| (some _, _) => none
| (none, fv) => fv
fvars.size
#eval test
def test2 : Nat :=
let inp : Array (Option Nat × Nat) := #[(some 0, 0)]
let fvars : Array Nat := inp.filterMap fun
| (some _, _) => none
| (none, fv) => fv
fvars.size
#eval test2