MCPcopy Create free account
hub / github.com/argumentcomputer/ix / mdata_default_empty

Function mdata_default_empty

crates/kernel/src/expr.rs:966–969  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

964 // Binder names are alpha-equivalent metadata; two lambdas differing
965 // only in binder name hash identically (true alpha-invariance even
966 // in `Meta` mode).
967 let ty = ME::sort(MU::zero());
968 let body = ME::var(0, mk_name("x"));
969 let a =
970 ME::lam(mk_name("x"), BinderInfo::Default, ty.clone(), body.clone());
971 let b = ME::lam(mk_name("y"), BinderInfo::Default, ty, body);
972 assert_eq!(a, b);

Callers

nothing calls this directly

Calls 2

varFunction · 0.70
mk_nameFunction · 0.70

Tested by

no test coverage detected