treams.Lattice.__and__

Lattice.__and__(other)

Intersect two lattices.

The intersection of two lattices is taken if possible.

Example

>>> Lattice([1, 2]) & Lattice([2, 3], 'yz')
Lattice(2.0, alignment='y')
Parameters:

other (Lattice) – Lattice to intersect.

Returns:

Lattice