utilities for list, set, and array processing