Add functions for immutable lists