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

Function nat_str_hash

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

Source from the content-addressed store, hash-verified

954
955 #[test]
956 fn app_order_matters() {
957 let v0 = AE::var(0, ());
958 let v1 = AE::var(1, ());
959 assert_ne!(AE::app(v0.clone(), v1.clone()).addr(), AE::app(v1, v0).addr());
960 }
961
962 #[test]
963 fn lam_meta_name_does_not_affect_hash() {
964 // Binder names are alpha-equivalent metadata; two lambdas differing

Callers

nothing calls this directly

Calls 2

natFunction · 0.70
mk_addrFunction · 0.70

Tested by

no test coverage detected