Skip to main content

Module iterator

Module iterator 

Source
Expand description

Iterator FFI Functions for JIT

Functions for iterator operations (done check, next element) in JIT-compiled code.

Functionsยง

jit_iter_done
Check if iterator is exhausted Stack input: [iter, idx] Returns: TAG_BOOL_TRUE if done, TAG_BOOL_FALSE otherwise
jit_iter_next
Get next element from iterator Stack input: [iter, idx] Returns: Element at idx, or TAG_NULL if out of bounds