Rewrite _.partial to use a for loop.