On Mon, Dec 12, 2016 at 11:12:22AM +0100, Henrik Sarvell wrote:
> This looks like the one I need, I want all projects whose date range
> has any kind of overlap with the given date range.

How do you think about the '+UB' tree solution I suggested in my follow-up mail?

>    (class +Proj +Macropisobj)
>    ...
>    (rel sDate (+UB +Aux +Ref +Date) (eDate))
>    (rel eDate (+Date))
> Then a 'collect' would find the range directly:
>    (collect 'sDate '+Proj (list Sdate Sdate) (list Edate Edate))

I think that is much more elegant and efficient.

- Alex
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to