blob: e7f14699589921712fac3a2312f08b4eaa59ad24 [file] [edit]
import Lean
open Lean
unsafe def tst : IO Unit :=
withImportModules #[{module := `Init.Data.Array}] {} fun env =>
match env.find? `Array.foldl with
| some info => do
IO.println (info.instantiateTypeLevelParams [Level.zero, Level.zero])
IO.println (info.instantiateValueLevelParams! [Level.zero, Level.zero])
IO.println (info.instantiateValueLevelParams! [Level.zero])
| none => IO.println "Array.foldl not found"
#eval tst