Allow undefined high order function

Would this similarly allow functions to be defined with gradients?