correct module bugs
This commit is contained in:
11
README.md
11
README.md
@@ -251,4 +251,15 @@ been exported to the toplevel. To export them, write
|
||||
```
|
||||
prolog> :- use_module(library(lists)).
|
||||
prolog> :- use_module(library(control)).
|
||||
```
|
||||
|
||||
To define modules inline at the REPL, use the ":{{"\"}}:" delimiters:
|
||||
|
||||
```
|
||||
prolog> :{{
|
||||
:- module(test, [local_member/2]).
|
||||
:- use_module(library(lists)).
|
||||
|
||||
local_member(X, Xs) :- member(X, Xs).
|
||||
}}:
|
||||
```
|
||||
Reference in New Issue
Block a user