Did you know ...
Search Documentation:
Predicate shorter_list/2
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
IRC
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
dialect
sicstus4
aggregate.pl -- SICStus 4 library(aggregate).
between.pl -- SICStus 4 library(between).
clpfd.pl -- SICStus 4 library(clpfd)
file_systems.pl -- SICStus 4 library(file_systems).
system.pl -- SICStus 4-compatible library(system).
lists.pl -- SICStus 4-compatible library(lists).
rev/2
shorter_list/2
prefix/2
proper_prefix/2
suffix/2
proper_suffix/2
scanlist/4
scanlist/5
scanlist/6
ordsets.pl -- SICStus 4 library(ordsets).
samsort.pl -- SICStus 4 library(samsort).
sets.pl -- SICStus 4 library(sets).
sockets.pl -- SICStus 4-compatible library(sockets).
terms.pl -- SICStus 4-compatible library(terms).
timeout.pl -- SICStus 4-compatible library(timeout).
types.pl -- SICStus 4 library(types).
shorter_list
(?Short, ?Long)
is
nondet
True if
Short
is a shorter list than
Long
. The lists' contents are insignificant, only the lengths matter. Mode -
Short
, +
Long
can be used to enumerate list skeletons shorter than
Long
.