This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Functionality for the `names>` repl mode | |
using REPL: moduleusings | |
# search through all accessible names for functionality with a name like `str` | |
names_like(str) = foreach(println, _corrections(str, _accessible_names())) | |
function _accessible_names(mod=Main) # Based on code in stdlib | |
_names(m) = names(m; all=true, imported=true) # include unexported `Base` + `mod` names | |
mod_names = filter!(s -> !Base.isdeprecated(mod, s), _names(mod)) |