[top][index]
search for:

flatten -- flatten a list by unnesting lists

flatten m -- produces a new list from m by effectively removing the braces surrounding the elements of any elements of m which happen to be lists. Also works for matrices.

i1 : flatten {{2,3,4},{{5}},6}

o1 = {2, 3, 4, {5}, 6}

o1 : List

Ways to use flatten :

  • flatten Matrix
  • flatten VisibleList

  • [top][index]
    search for: