add qualified imports

This commit is contained in:
Mark Thom
2018-03-05 21:13:07 -07:00
parent dbab7a8667
commit b1c41f211b
5 changed files with 108 additions and 46 deletions

View File

@@ -263,4 +263,12 @@ prolog> :{{
local_member(X, Xs) :- member(X, Xs).
}}:
```
```
`use_module` directives can be qualified by adding a list of imports:
```
prolog> :- use_module(library(lists), [member/2]).
```
A qualified `use_module` can be used to remove imports from the
toplevel by giving it an empty import list.