Closed ryanb closed 9 months ago
Oops, definitely something I meant to get back to. I think I wasn't quite sure how to communicate what these functions did, or if they should maybe be flipRows
and flipCols
. Still not sure in general about x/y vs rows/cols, but I think for now we can stick with these names. Does this fix look good to you? https://github.com/mulias/roc-array2d/pull/4
@mulias PR looks good to me.
I'm not sure about naming. I personally like x/y because it's short, communicates well and fits the "2D" name.
That said, flip
could be taken either way since it's not very clear which way it's flipping based on the name. Perhaps look at other libs to see how they name this.
I agree about names, but I think that's part of a larger design question. At this point I'm not sure if it's worth it to generalize the library to include 1D, 3D, or ND data structures, and if we did that how it would impact function names.
I merged the fix pr so I'll close this for now.
They appear to have the same implementation.