You might have tried it. You might have read the documentation: "The operator contains is used to check whether a field that is a Collection or array contains the specified value."
-W On 20/02/2012, aitchnyu <jesv...@technovia.co.in> wrote: > I wanted faster (and cleaner) code for intersections and membership checks > in > my Drools Planner 5.4 program, so (AFAIK) Set datatype can do it faster. > > Can Drools work equally well with Set as with List datatype? I want to use > the `contains` and `memberOf` operations, but I dont care for index access > (set[n]) > > > *Background*: I am developing a timetabling application in Drools Planner. > Each teacher has a list (set!) of periods he may teach. I want to find > intersecting periods between all teachers; so that I can create swap moves. > > Drools now has to handle Set datatype instead of List. > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Does-Drools-work-with-Set-datatype-tp3760001p3760001.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users