1

I'm writing a package (nothing complicated) where I define a lookup function for a defined association. As an Example:

allmycolors =A <|"Blue Special" -> Blue, "Red for fun" -> Red|>
mycolor[c_] := Lookup[allmycolors, c, Yellow]

The Key names are describing the color and of course there are many more. What I would really like is that when using mycolor["... I get a list of the colors I can choose, use tab and let the system do the autocomplete just like the regular functions. Is there a way to do this?

Lou
  • 3,822
  • 23
  • 26

0 Answers0