Skip to content

Conversation

alper
Copy link
Contributor

@alper alper commented Aug 12, 2025

This is necessary for one of the exercises below. Otherwise things could get a bit roundabout.

This is necessary for one of the exercises below. Otherwise things could get a bit roundabout.
@@ -490,8 +490,8 @@ fn TutorialArrays() -> impl IntoView {
<Editor example="↯2_3_4 ⇡24"/>
<p>"Notice there are "<code>"2"</code>" big cells, each with "<code>"3"</code>" rows of "<code>"4"</code>" elements."</p>
<p>"This expands to any number of dimensions. The elements of the last axis are always laid out horizontally. The rows of the second-to-last axis are always laid out vertically. The third-to-last axis is horizontal, the fourth-to-last is vertical, etc."</p>
<p>"We can see here that the shape "<code>"[2 3 4 5]"</code>" appears almost like a 2×3 matrix of 4×5 matrices."</p>
<Editor example="↯2_3_4_5 ⇡120"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like this original example to be preserved. It shows how elements are laid out in order.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous example (↯2_3_4 ⇡24) also shows that I think. The only difference here is that the shape is rank 4.

But OK. How about it like this? It would keep most of the original while also illustrating cycling.

@kaikalii kaikalii merged commit fb8cd86 into uiua-lang:main Aug 13, 2025
5 checks passed
@kaikalii
Copy link
Member

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants