Add curry to core.Function