How to check if any argument is passed to a function?
For example, if I have:
f[x_Integer]:=1 f[x_]:=Message[errm::err, x]
and I call f with no argument:
f[]
"nothing happens", I want to force a specific condition (errors).
(Background: I do MUnit tests for OO-System packages and classes.)
wolfram-mathematica
nilo de roock
source share