I am working on a library that allows the creation and manipulation of Vectors (lists with a known length), Matrices (lists of lists with known dimensions), and three-, four- etc. order Tensors (lists of lists of lists... with known dimensions).
Now, printing a one-dimensional or two-dimensional data structure to the screen is simple. But I am wondering if there is a nice way to represent a three-dimensional grid of values to the user for inspection.
I ask this question here as it seems like the question that another programmer would've faced before me.
How to represent a three- or higher dimensional grid of values in a terminal in a human-readable way?