10 questions linked to/from "Unflattening" a list
143k views

### Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
14k views

### What are some useful, undocumented Mathematica functions?

There have already been some questions about some undocumented functionality in Mathematica. Such as (please add to these lists!) How can one find undocumented options or option values in Mathematica?...
1k views

### UnFlatten an array into a ragged matrix

Trying to unflatten an array that was part of ragged array of sub matrices. As input we have flattened array: ...
1k views

### “Indexing” a vector

I need to "index" a vector according to the first occurence of its distinct elements. I have written ...
774 views

### Smarter Shuffle of a List

I have a 2D matrix representing a keyboard: ...
554 views

### Adding list of list to a list

Hello I need some help on how to add a list to a list of list. The program would have to do as below: {{0,0}, {0}, {0,0,0}}+{1,2,3,4,5,6} will give ...
1k views

### How to fix this memory leak

I am using halirutan's code in this thread to unflatten a list. It works very well but the problem is that the Module's local function f is not deleted when the ...
412 views

### How to reshape a list as another ragged list [duplicate]

Background If I want wo reshape list1 as list2: ...
Imagine I have $N \approx 10^5$ clouds of points in an array of the form: UPDATED ...