Support using maps and lists as functions