Function that takes at least one other function as an argument