Accepts function with arity 1 as transformer