Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Apply a function on an expression when FailureQ gives True on it; otherwise, return the expression
ResourceFunction["OnFailure"][f,expr] gives f[expr] if FailureQ[expr] is True; otherwise, gives expr. | |
ResourceFunction["OnFailure"][f] is an operator form of ResourceFunction["OnFailure"]. |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License