Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • $\begingroup$ Also see Identity for the ItemDisplayFunction. $\endgroup$ Commented Oct 3, 2021 at 22:23
  • 1
    $\begingroup$ @Edmund, I did try that but ItemDisplayFunction -> Identity did not work. $\endgroup$ Commented Oct 3, 2021 at 22:48
  • $\begingroup$ ItemDisplayFunction -> (Identity[#] &) works but this is less elegant than your solution. $\endgroup$ Commented Oct 3, 2021 at 23:07
  • $\begingroup$ Read ItemDisplayFunction's documentation. The function takes 3 parameters. ({i, p, d} |-> i) for example. $\endgroup$ Commented Oct 4, 2021 at 23:43
  • $\begingroup$ @Edmund, yes, I know. But I don't see any advantage (or difference) in using Identity instead of a shorthand pure function. $\endgroup$ Commented Oct 5, 2021 at 6:30