Woah thats AWESOME!! Thanks so much!!
1 Like
makecode!!! Ur very cool
Update: I merged this extension with my Sorting extension to create the array-methods extension. I might update it sometime in the future.
2 Likes
Important correction!
In the second image, the if length of array items <= 1
block is incorrect.
It should instead be swapped with
if length of array items < 1 do
return [] (empty array)
In the old code, if the length of array is 1 (ex. [ [1, 2, 3] ], array contains one subarray), it would just return that sequence which would not be concatenated. Sorry for my error, I didn’t catch it before
2 Likes