createArgFunction function

Create an argument function