A runtime-only import is not loaded into the compile-time environment, but is linked into and initialized in binaries
14 lines
403 B
Text
14 lines
403 B
Text
import Init.Lean
|
|
open Lean
|
|
|
|
def tst : IO Unit :=
|
|
do env ← importModules [{module := `Init.Data.Array}];
|
|
match env.find `Array.foldl with
|
|
| some info => do
|
|
IO.println (info.instantiateTypeLevelParams [levelZero, levelZero]);
|
|
IO.println (info.instantiateValueLevelParams [levelZero, levelZero]);
|
|
pure ()
|
|
| none => IO.println ("Array.foldl not found");
|
|
pure ()
|
|
|
|
#eval tst
|