| 1 | initial version |
IntegerVectors do that. E.g. IntegerVectors(2,2).list() give [[2, 0], [1, 1], [0, 2]] as requested.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.