I'm surprised there are so few programming languages with a built-in database that you can query for facts about definitions.
For example, list all the functions that take three arguments.
We have self-hosting compilers, why not self-host code exploration APIs?
It's weird how many languages represent tests as functions. They rarely take arguments and very rarely (never?) call other tests.
Is it the right abstraction?
tap> is an elegant Clojure debugging feature: it passes the argument to any functions registered with add-tap.
You might set up a custom printer for your data type, or save values for later examination, and you can easily disable the tap too.