fold functions for Text, Vector etc.