Calls func for each item in the sequence passing user_data to the function.
func
user_data
a Sequence
the function to call for each item in this
user data passed to func