Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def intersection(*seqs):
    return (item for item in seqs[0]
                 if all(item in seq for seq in seqs[1:]))
        


src/l/o/logic-0.1.10/logpy/facts.py   logic(Download)
from util import intersection, index, merge
from core import conde, reify, isvar
 
class Relation(object):
    _id = 0
                                       if  key in self.index]
            if subsets:     # we are able to reduce the pool early
                facts = intersection(*sorted(subsets, key=len))
            else:
                facts = self.facts

src/l/o/logpy-HEAD/logpy/facts.py   logpy(Download)
from .util import intersection, index
from .core import conde, reify, isvar
from toolz import merge
 
class Relation(object):
                                       if  key in self.index]
            if subsets:     # we are able to reduce the pool early
                facts = intersection(*sorted(subsets, key=len))
            else:
                facts = self.facts