ā Help in 2d matrix
Why does it changes all the inner arrays instead of the first one ![kekw](https://cdn.discordapp.com/emojis/827501814357819404.png)
![kekw](https://cdn.discordapp.com/emojis/827501814357819404.png)
25 Replies
Array is a reference type
ahbn
You're filling the
columns
with 4 references to the same lines
array![blobSpoop](https://cdn.discordapp.com/emojis/375012565534900225.png)
![catbruh](https://cdn.discordapp.com/emojis/1002292791956742146.png)
What do you want to do ?
I guess you could try a LINQ trick... maybe
im in caffeine overload, little bugged brain
but
Hmmmm
thanks
arr.ToArray()
should create a copyjusst toarray didnt work
ill try this select one
oh your solution did work!
thanks
whats your gh @? ill lik you as co author
Angius#1586
REPL Result: Success
Result: List<int[]>
Compile: 571.554ms | Execution: 83.665ms | React with ā to remove this embed.
Samarichitane#3472
REPL Result: Success
Result: <ChunkIterator>d__69<char>
Compile: 531.205ms | Execution: 34.442ms | React with ā to remove this embed.
@Atulin
Huh, that .Chunk()
solution is smartthanks
You can close thread with /close š
\close
not \
with /
waht a fuck
![](https://utfs.io/f/ae2dbf2f-e392-4bb4-8a45-ed82bc925adc-1nq2cb.png)
huh
Ah, wrong bot's command
Pick the Accord one
![](https://utfs.io/f/a1be31fa-6ebe-49ea-931b-9d5730f88ec8-1nq2cb.png)
i did
but
i still can post
š§
Try again
![](https://utfs.io/f/09216529-68d7-405d-918a-82c9a41952cb-1nq2cb.png)
![catgun](https://cdn.discordapp.com/emojis/770050694987644948.png)