I am making functions to compute, for example, maximal sublattices or
Frattini sublattice of a lattice. It is somewhat faster to return only
list of elements instead of lattice. What you think, should the function
return
1) a sublattice, ready to use as a lattice for further computations;
user might say .list() when only list of elements is needed, or use
directly function from hasse_diagram.py if more speed is needed,
2) a list; user can say orig_lattice.sublattice(result) when really
the lattice is needed, or
3) both?
If 3, what should be the name of the parameter. At least
"element_constructor" is used somewhere, but I think there is also some
other names used.
--
Jori Mäntysalo