Did you know ...
Search Documentation:
Predicate fdset_add_element/3
HOME
DOWNLOAD
SWI-Prolog
Sources/building
Docker images
Add-ons
Browse GIT
DOCUMENTATION
Manual
Packages
FAQ
Command line
PlDoc
Bluffers
▶
Prolog syntax
PceEmacs
HTML generation
License
Publications
Rev 7 Extensions
TUTORIALS
Beginner
▶
Getting started
Learn Prolog Now!
Simply Logical
Debugger
Development tools
Advanced
▶
Modules
Grammars (DCGs)
clp(fd)
Printing messages
PlDoc
Web applications
▶
Web applications
Let's Encrypt!
Pengines
Semantic web
▶
ClioPatria
RDF namespaces
Graphics
▶
XPCE
GUI options
Machine learning
▶
Probabilistic Logic Programming
External collections
▶
Meta level tutorials
For packagers
▶
Linux packages
COMMUNITY
Forum & mailing list
Blog
News
Report a bug
Submit a patch
Submit an add-on
Roadmap (on GitHub)
External links
Contributing
Code of Conduct
Contributors
SWI-Prolog items
COMMERCIAL
WIKI
Login
View changes
Sandbox
Wiki help
All tags
Documentation
Reference manual
The SWI-Prolog library
library(clpfd): CLP(FD): Constraint Logic Programming over Finite Domains
CLP(FD) predicate index
FD set predicates
in_set/2
fd_set/2
is_fdset/1
empty_fdset/1
fdset_parts/4
empty_interval/2
fdset_interval/3
fdset_singleton/2
fdset_min/2
fdset_max/2
fdset_size/2
list_to_fdset/2
fdset_to_list/2
range_to_fdset/2
fdset_to_range/2
fdset_add_element/3
fdset_del_element/3
fdset_disjoint/2
fdset_intersect/2
fdset_intersection/3
fdset_member/2
fdset_eq/2
fdset_subset/2
fdset_subtract/3
fdset_union/3
fdset_union/2
fdset_complement/2
Packages
Availability:
:- use_module(
library(clpfd)
).
[det]
fdset_add_element
(
+Set1, +Elt, -Set2
)
Set2
is the same FD set as
Set1
, but with the integer
Elt
added. If
Elt
is already in
Set1
, the set is returned unchanged.