if (list[0] instanceof Function) { return list[0].apply(undefined, list.slice(1)); } else { return list; }