Re: [eclipse-clp-users] my_indomain

From: Daniel Riera <daniel.riera_at_gmail.com>
Date: Wed, 7 Jan 2009 23:07:46 +0100
Thank you very much Marco and Wit, I'll try your solutions now.

Best,
Daniel

2009/1/7 Wit Jakuczun <wit.jakuczun_at_gmail.com>

> 2009/1/7 Daniel Riera <daniel.riera_at_gmail.com>:
> > Hello everybody,
> >
> Hi
>
> > I was wondering if there is an easy way to do the following:
> >
> > Given a variable X, and its domain {1..10}, if I want it to be labelled
> > in a certain order, for instance, [3,6,4,5,8,7,9,10,1,2], what is the
> > best way to do it?
> >
>
> You can do it using member/2 predicate
> like that:
>
>  member(X,  [3,6,4,5,8,7,9,10,1,2])
>
> Best regards
> --
> [ Wit Jakuczun  w.jakuczun_at_wlogsolutions.com ]
> [ WLOG Solutions http://wlogsolutions.com   ]
>



-- 
"pluralitas non est ponenda sine neccesitate" (William of Ockham)
http://requetenacimiento.blogspot.com/
Received on Wed Jan 07 2009 - 22:09:39 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET