# This function returns the index of the first "true" element in `v'. # If none are found, it returns 0. first = function( v ) { v = find( 0; !v[] ); if ( v.ne == 0 ) { return 0; else return v[1]; } };