WIP
This commit is contained in:
parent
cb07245bd9
commit
ba530d3deb
@ -34,6 +34,7 @@ It uses all three operators:
|
|||||||
- and `natural_join` to attach each book's price.
|
- and `natural_join` to attach each book's price.
|
||||||
|
|
||||||
```prolog
|
```prolog
|
||||||
|
% Datalog rule/query
|
||||||
Q(name, book, dollars) :- author(name, book), bestseller(book), price(book, dollars).
|
Q(name, book, dollars) :- author(name, book), bestseller(book), price(book, dollars).
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -107,7 +108,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
How it works:
|
How it works (logically):
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<picture>
|
<picture>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user