On Tue, Nov 26, 2019 at 01:13:09PM -0800, C K Kashyap wrote:
> Hey Alex,
> What I need is an "and" - with collects, I do a (sect of L1 L2) ... I tried
> a bunch but cant seem to get "and" working -
> I need the items that are "RED" and "BLUE" :(

Hmm, isn't that impossible? In your model, a tag has a *single* link to a
TagVal, so it has *one* color and cannot have red AND blue at the same time

   (class +Tag +Entity)
   (rel itm (+Joint) tgs (+Item))
   (rel v (+Ref +Link) NIL +TagVal)

   (class +TagVal +Entity)
   (rel nm (+IdxFold +String))

so

> >> >       (setq L1 (collect 'v '+Tag RED RED 'itm))
> >> >       (setq L2 (collect 'v '+Tag BLUE BLUE 'itm)))
> >> > (sect L1 L2) --> this is what I want

the section of L1 and L2 will always be empty, no?

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe

Reply via email to