MathExtras: Return the result of find(First|Last)Set in the input type.