@Mr.Xcoder @Emigna @Adnan What would be the easiest way to split a (sorted) list into sublists which are strictly increasing by 1? For example: [12,13,14,15,20,21,34,35,36] would become [[12,13,14,15],[20,21],[34,35,36]]. I can't get a clear head and think of something short to accomplish this.. I end up at 15+ bytes, and have the feeling it can be done in like 5 or 6.. >.>
@Emigna @KevinCruijssen Given a list and a list of lengths, what is the shortest way to split the list into chunks of those length? ex: [1,2,3,4,5,6,7,8], [2,2,4]->[[1,2],[3,4],[5,6,7,8]]?