Miscellaneous functions and applications for lists