in reply to Re: Spliting array into nested sequential arrays
in thread Spliting array into nested sequential arrays

Of course. I had another line to push the last set. Missed it in here. So how would you tackle the fist question.

I also thought about recursively splicing but I am not sure whether it would improve.

I did not think of using map for the 2nd part. Very neat indead! Thank you.
  • Comment on Re^2: Spliting array into nested sequential arrays