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

Method app_telescope_count

crates/ixon/src/expr.rs:112–120  ·  view source on GitHub ↗

Count nested applications for telescope compression.

(&self)

Source from the content-addressed store, hash-verified

110
111 /// Count nested applications for telescope compression.
112 pub fn app_telescope_count(&self) -> u64 {
113 let mut count = 0u64;
114 let mut curr = self;
115 while let Expr::App(f, _) = curr {
116 count += 1;
117 curr = f.as_ref();
118 }
119 count
120 }
121
122 /// Count nested lambdas for telescope compression.
123 pub fn lam_telescope_count(&self) -> u64 {

Callers 1

put_exprFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected