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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -