+
+ EXAMPLES::
+
+ sage: from mjo.eja.eja_utils import _all2list
+ sage: V1 = VectorSpace(QQ,2)
+ sage: V2 = MatrixSpace(QQ,2)
+ sage: x1 = V1([1,1])
+ sage: x2 = V1([1,-1])
+ sage: y1 = V2.one()
+ sage: y2 = V2([0,1,1,0])
+ sage: _all2list((x1,y1))
+ [1, 1, 1, 0, 0, 1]
+ sage: _all2list((x2,y2))
+ [1, -1, 0, 1, 1, 0]
+ sage: M = cartesian_product([V1,V2])
+ sage: _all2list(M((x1,y1)))
+ [1, 1, 1, 0, 0, 1]
+ sage: _all2list(M((x2,y2)))
+ [1, -1, 0, 1, 1, 0]
+