RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/Uiua/create-a-two-dimensional-array-at-runtime.uiua

8 lines
274 B
Text
Raw Permalink Normal View History

2025-06-11 20:16:52 -04:00
⋕&sc &pf "Enter a width: "
⋕&sc &pf "Enter a height: "
˜↯0⊟ # create 2D array filled with 0
⍜⊡⋅3 1_2 # store 3 at row 1, col 2
⟜&s # show array non-destructively
⊡1_2 # retrieve element at row 1, col 2
# this also destroys the array