nx_sum_first_n.nx
buildroot/runtime/nx_sum_first_n.nx
about
nx_sum_first_n.nx -- AUTO-GENERATED from shape `scalar_accumulator_n`.
Shape: takes a count `n`, runs `n` iterations of STEP, returns the
final accumulator value. INIT is the starting accumulator; STEP
is the per-iteration update expression (may reference `acc`, `n`,
and the loop variable `i`).
genealogy_id: synthesized_from_corpus
lineage_id: scalar_accumulator_n
license: public_domain
complexity: O(n)
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_tier.nx
imported by: nx_sum_first_n_test.nx
structs
| none |
consts
| none |
functions
| 22 | func nx_sum_first_n(n: nx_int) -> nx_int called by 1: main |