Declare functions of type

Moved from another thread

Let’s say you want to know the methods to modify a Dict. In e.g. rust you can find those methods in the documentation of the Dict datatype. But if you execute apropos(“Dict”) in Julia you find both functions like Base.mergewith, but also stuff like Base.setenv or Base.Cmd.

This is a really good point. I would like a way to connect Dict to mergewith but not to setenv. methodswith(Dict) takes 9 seconds and returns values including select_downloadable_artifacts which is really not what I’m looking for.

I can’t think of an objective criterion that distinguishes them so it might have to be manual opt in. Can anyone think of a good way to do this?

1 Like