code wiki / (root) / nx_count_one.nx

nx_count_one.nx

buildroot/runtime/nx_count_one.nx

812 B27 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind generated fixturetopic count
docsdependenciesstructsconstsfunctions

about

nx_count_one.nx -- AUTO-GENERATED from shape `array_count_predicate`. Count array elements satisfying if v == 1 { count = count + 1 } (an `if ... { count = count + 1 }`). genealogy_id: lineage_id: array_count license: public_domain complexity: O(n)

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_tier.nx nx_count_one.nx nx_count_one_test.nx

imports: nx_syscalls.nxnx_tier.nx

imported by: nx_count_one_test.nx

structs

none

consts

none

functions

18func nx_count_one(arr: *nx_int, n: nx_idx) -> nx_int
called by 1: main