Mathematica: How to check if no argument is supplied to a function? -
how check if no argument supplied function?
for example, if have:
f[x_integer]:=1 f[x_]:=message[errm::err, x] and call f no argument:
f[] 'nothing happens', want force specific (error-)condition.
( background: making munit tests packages , oo-system classes. )
this?
f[x_integer] := 1 f[x_] := message[errm::err, x] f[] := message[errm::err]
Comments
Post a Comment