Is there something like a function pattern test?
function[x_?FunctionQ]:=Module[{},]
In order that Mathematica can tell if the argument is a function or a parameter?
Is there something like a function pattern test?
function[x_?FunctionQ]:=Module[{},]
In order that Mathematica can tell if the argument is a function or a parameter?
FunctionorSymbol. – Αλέξανδρος Ζεγγ Aug 01 '19 at 11:49_Function | (s_Symbol /; Length[DownValues[s]] > 0)– Kuba Aug 01 '19 at 12:02x : Except[ _Symbol]butSinis a function isn't it? – Kuba Aug 01 '19 at 12:03Sinis function whileSin[x]is a function call. – Kuba Aug 01 '19 at 12:09Moduleunder "Details". In this way, all the myriad forms of specifying a function are covered. – Roman Aug 01 '19 at 12:18