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

Method nat_expr_from_value

crates/kernel/src/whnf.rs:1961–1964  ·  view source on GitHub ↗
(&mut self, n: Nat)

Source from the content-addressed store, hash-verified

1959 if ty_head_id.addr != ind_id.addr {
1960 return Ok(None);
1961 }
1962
1963 // Get the first constructor
1964 let ctor_id = match self.try_get_const(&ind_id)? {
1965 Some(KConst::Indc { ctors, .. }) if !ctors.is_empty() => ctors[0].clone(),
1966 _ => return Ok(None),
1967 };

Callers 2

Calls 1

natFunction · 0.70

Tested by

no test coverage detected