Hackey solution to generating a arity fns