feat: Condensed interface #85
|
@ -20,8 +20,8 @@ def isNameInternal (n: Name): Bool :=
|
||||||
@[export pantograph_environment_catalog]
|
@[export pantograph_environment_catalog]
|
||||||
def env_catalog (env: Environment): Array Name := env.constants.fold (init := #[]) (λ acc name _ =>
|
def env_catalog (env: Environment): Array Name := env.constants.fold (init := #[]) (λ acc name _ =>
|
||||||
match isNameInternal name with
|
match isNameInternal name with
|
||||||
| true => acc.push name
|
| false => acc.push name
|
||||||
| false => acc)
|
| true => acc)
|
||||||
|
|
||||||
@[export pantograph_environment_module_of_name]
|
@[export pantograph_environment_module_of_name]
|
||||||
def module_of_name (env: Environment) (name: Name): Option Name := do
|
def module_of_name (env: Environment) (name: Name): Option Name := do
|
||||||
|
|
Loading…
Reference in New Issue