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

Function unit

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

Source from the content-addressed store, hash-verified

3534
3535 let s = match args[0].data() {
3536 ExprData::Str(s, _, _) => s,
3537 _ => return Ok(None),
3538 };
3539 if is_utf8_byte_size {
3540 let n = Nat::from(s.len() as u64);
3541 let addr = Address::hash(&n.to_le_bytes());

Callers 2

unit_envFunction · 0.85

Calls 1

cnstFunction · 0.70

Tested by 1