This isn't really a "curry" function anymore, so it should probably be renamed.