Jonathan Carroll on Nostr: nprofile1q…pqxwu I had forgotten about InvertedIndices and intially tried to use a ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqh7xyrkhkm0wt6ycl4ttnfvtyyhk4tm5ku3kgxjld8j55cy8penwqppqxwu (nprofile…qxwu) I had forgotten about InvertedIndices and intially tried to use a negative index 🙄
I ended up using essentially
map(i -> deleteat!(deepcopy(x), i), eachindex(x))
with no considerations of performance or complexity, whatsoever.
https://github.com/jonocarroll/advent-of-code/blob/main/2024%2FJulia%2Fday02.jl#L13-L15
I ended up using essentially
map(i -> deleteat!(deepcopy(x), i), eachindex(x))
with no considerations of performance or complexity, whatsoever.
https://github.com/jonocarroll/advent-of-code/blob/main/2024%2FJulia%2Fday02.jl#L13-L15