curry: Basic implementation based on function arity

Better late than never. Proposed `curry` util that allows for arity based function calling.