sits_factory_function function

Create a closure for calling functions with and without data