add function

add elements of a repeated field of a message