I don’t really understand what you want. Maybe you need to combine above with an if
and generate a different closure depending on what inputs you got? Send a code snippet of what you got (please quote you code: PSA: how to quote code with backticks).