nl_tokens: Computes which child is the smallest according to a comparison function .
pl_tokens: function nextchild ( compare , a , i , j ) { if ( j - i < 2 ) <mask> i ; if ( compare ( a [ i ] , a [ i + 1 ] ) <= 0 ) return i ; return i + 1 ; }