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

Method app

crates/common/src/env.rs:871–877  ·  view source on GitHub ↗

Constructs a function application `f a`.

(f: Expr, a: Expr)

Source from the content-addressed store, hash-verified

869 let mut hasher = blake3::Hasher::new();
870 hasher.update(&[ESORT]);
871 hasher.update(x.get_hash().as_bytes());
872 Expr(Arc::new(ExprData::Sort(x, hasher.finalize())))
873 }
874
875 /// Constructs a constant reference with universe level arguments.
876 pub fn cnst(x: Name, us: Vec<Level>) -> Self {
877 let mut hasher = blake3::Hasher::new();
878 hasher.update(&[EREF]);
879 hasher.update(x.get_hash().as_bytes());
880 for u in &us {

Callers

nothing calls this directly

Calls 4

as_bytesMethod · 0.80
get_hashMethod · 0.80
finalizeMethod · 0.80
ExprClass · 0.70

Tested by

no test coverage detected