Say I want to find sum of all solutions to a predicate, I just can use
findall(L, find(L), Sols),
and just sum members of Sols.
But what if find(L) has a huge number (infinitely, maybe) of solutions, and I just want to get only first 10 of them?
I'd want this to be usable in B-Prolog and ECLiPSe CLP.