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

Function whnf_cache_hit

crates/kernel/src/whnf.rs:3498–3507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3496 return Ok(None);
3497 }
3498 let mut s = String::new();
3499 if !self.walk_literal_char_list(&args[0], &mut s)? {
3500 return Ok(None);
3501 }
3502 let blob_addr = Address::hash(s.as_bytes());
3503 return Ok(Some(self.intern(KExpr::str(s, blob_addr))));
3504 }
3505
3506 if *addr == self.prims.string_append.addr {
3507 if args.len() != 2 {
3508 return Ok(None);
3509 }
3510 let Some((sa, sb)) = self.two_string_lit_args(&args[0], &args[1])? else {

Callers

nothing calls this directly

Calls 6

whnfMethod · 0.80
env_with_idFunction · 0.70
cnstFunction · 0.70
mk_idFunction · 0.70
appFunction · 0.70
sort0Function · 0.70

Tested by

no test coverage detected