list.clean function

Clean a list by a function