nx_find_first_positive.nx
buildroot/runtime/nx_find_first_positive.nx
about
nx_find_first_positive.nx -- AUTO-GENERATED from shape `array_find_index`.
Return index of first element satisfying the COND_BODY test; -1 if none.
genealogy_id:
lineage_id: array_find_index
license: public_domain
complexity: O(n) worst, short-circuits on match
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_tier.nx
imported by: nx_find_first_positive_test.nx
structs
| none |
consts
| none |
functions
| 18 | func nx_find_first_positive(arr: *nx_int, n: nx_idx) -> nx_idx called by 1: main |