Enumeration of integers inside a range

Author(s): The Ciao Development Team.

This modules enumerates integers between two numbers, or checks that an integer lies within a range

Usage and interface

  • Library usage:
    :- use_module(library(between)).
  • Exports:

Documentation on exports

PREDICATEbetween/3

Usage:between(Min,Max,N)

N is a number which is greater than or equal to Min and smaller than or equal to Max. Both Min and Max can be either integer or real numbers.

Documentation on imports

This module has the following direct dependencies: