Rearranging RASCivector::apply so more of the code can be reused.