Examples showing how to manipulate a List in a User Defined Function (UDF)