Re: [eclipse-users] The quickest way to find the min/max of an ic_set

From: William Heath <wgheath_at_...6...>
Date: Tue, 18 Dec 2007 12:22:01 -0800
intset(T1,1,9), writeln(T1), ic_sets:(set_range(T1, T2, T3)), writeln(T3).

I try this and it prints:

T1{([] .. [1, 2, 3, 4, 5, 6, 7, 8, 9]) : _382{0 .. 9}}
[1, 2, 3, 4, 5, 6, 7, 8, 9]

Shouldn't T3 be 9?

-Tim

On Dec 18, 2007 6:37 AM, Kish Shen <kisshen_at_...5...> wrote:
> Hi,
>
> By the way,  I am not sure if you are aware that in the Constraint
> Library manual, there is a chapter describing lib(fd_sets), which should
> have the same functionality as lib(ic_sets), except that it uses the
> older finite domain library lib(fd) instead of lib(ic). The description
> should apply to both lib(fd_sets_ and lib(ic_sets), because I think the
> two share a common code base. There might be some minor differences in
> the example code due to differences in ic and fd syntax. In any case, it
> does contain some introductory material on the integer sets as used by
> ECLiPSe, if you are not already familiar with that.
>
> (yes, this chapter probably should be updated to mention ic_set instead
> of fd_set).
>
> Cheers,
>
> Kish
>
> William Heath wrote:
>
> > Hello,
> >
> > What is the quickest way to find the min/max of an ic_set?
> >
> > -Tim
> >
>
> > _______________________________________________
> > ECLiPSe-Users mailing list
> > ECLiPSe-Users_at_...2...
> > http://www.crosscoreop.com/mailman/options/eclipse-users
> >
>
Received on Tue Dec 18 2007 - 20:22:12 CET

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:20 CEST