Reshape not working as expected

I was having trouble producing the top data programtically (x by x matrix with each element being an empty list) using reshape and eventually gave up and used a nested mapping

Is there a way of using reshape to do the job or does it need a slight tweak to deal with empty lists?

untitled script pic (13)

Probably you can, just ringify the list block, then wrap the entire script with call. It creates a 3×3 matrix with each element being an empty list. Is that what you mean?

That does the job - hopefully I'll remember to use it next time I need to do this sort of thing :slight_smile:

Ooooh, that's an awesome hack, kudos!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.