Tag Info

Hot answers tagged

3

If you look up the term pure function you'll find that in Mathematica jargon (as e.g. used in documentation) it actually means something that in computer science jargon is typically called an "anonymous" function. In CS jargon a pure function is usually one with no inner state, no side effects and isn't depending on any external input. The right hand side of ...


2

Probably something like this would work: f := (If[AllTrue[{##}, IntegerQ] , +##]) &



Only top voted, non community-wiki answers of a minimum length are eligible