2

In here, and all it's closely related links, I cant find anything that tells me how to set a list of the optional arguments.

All I want is something like this

Options[myfunc] = { a->0 };
myfunc[x_,OptionsPattern[]]:=Block[....]

Say, by default, a is 0. How do I setup something like when I use

myfunc[100, a->

would trigger a drop down list of values, {0,10,100,True,False} for me to choose?

I would think it can be easily found in the link above, or some of the links on its page. But it's just nowhere to be found!

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
Chen Stats Yu
  • 4,986
  • 2
  • 24
  • 50

0 Answers0