Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Snail array

while (array.length) {
    vector.push(...array.shift());
    console.log(vector);
    array.map(row => vector.push(row.pop()));
    array.reverse().map(row => row.reverse());
  }
 
PREVIOUS NEXT
Tagged: #Snail #array
ADD COMMENT
Topic
Name
3+1 =