Skip to main content

length

Function length 

Source
pub fn length(
    arena: &mut MorselArena,
    op: StrLen,
    v: &ValueVector,
) -> Result<ValueVector>
Expand description

Evaluate op(v) into a new flat integer vector.

Nothing here can raise, so unlike the numeric kernels there is no pass to decide whether the loop is allowed to run. A row outside the selection and a row holding a null are measured anyway, since measuring one costs less than the branch that would skip it and neither answer is ever read.