SAGE has the flatten() function for nested lists. But often one needs to make nested lists of certain length out of single flat list. For instance, turn [1, 2, 3, 4, 5, 6, 7, 8, 9]
into [[1, 2, 3], [4, 5, 6], [7, 8, 9]] Mathematica has split() function for that, but I can't find any identical function in SAGE. Is there any built-in function I don't know of? And if not, why not implement it, so the user wouldn't have to reinvent the wheel each time since such functionality is simple and often needed? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org