Originally asked by @lkastner on Slack :
I have some ugly constructions that I would like to get rid of.
julia> filter(t->leading_exponent_vector(t)==[0,4,4], collect(terms(QC4)))
1-element Vector{MPolyDecRingElem{QQFieldElem, QQMPolyRingElem}}:
1972628140481//316238254381921*y^4*z^4
I do this to get the term corresponding to a certain exponent vector. Is there something nicer? It does not work without collect. I also find the leading_exponent_vector a bit ugly, since basically it gets a “term”, so this vector should be unique, so I often tried exponent_vector instead, but that did not work.