Is there a way to have polymorphic function definitions in Mathematica? I looked around online and didn't anything discussing it.
Asked
Active
Viewed 200 times
1
len[x_?StringQ] := StringLength@x; len[x_?ListQ] := Length@x; len["greeks"] len[{10, 20, 30}]– Xminer Oct 19 '19 at 21:20