________________________________________________________________________

This file is part of Logtalk <https://logtalk.org/>  
Copyright 1998-2018 Paulo Moura <pmoura@logtalk.org>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
________________________________________________________________________


% start by loading the example and the required library files:

| ?- logtalk_load(attvarsp(loader)).
...


% simple finite, typed, domain reasoner:

| ?- domain(atom)::domain(X, [a,b]), X = c.
false.

| ?- domain(integer)::domain(X, [1,2]), domain(integer)::domain(X, [1,3]).
X = 1.

| ?- domain(integer)::domain(X, [1,2,3]), domain(integer)::domain(X, [1,3]).
domain(X, [1, 3]).

________________________________________________________________________

This file is part of Logtalk <https://logtalk.org/>  
Copyright 1998-2018 Paulo Moura <pmoura@logtalk.org>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
________________________________________________________________________


% start by loading the example and the required library files:

| ?- logtalk_load(attvars(loader)).
...


% simple finite, typed, domain reasoner:

| ?- domain(atom)::domain(X, [a,b]), X = c.
false.

| ?- domain(integer)::domain(X, [1,2]), domain(integer)::domain(X, [1,3]).
X = 1.

| ?- domain(integer)::domain(X, [1,2,3]), domain(integer)::domain(X, [1,3]).
domain(X, [1, 3]).

Fix typo in the sample queries for the `attvars` example
Fix typo in the sample queries for the `attvars` example

Thanks to Michael T. Richter for the bug report.
