Hy everyone,
I’m trying to built this patch for a while now and I think it’s time to give up and ask for help. I think this is a quite simple thing to do but I got stuck in a last procedure.
I want to segment a list into sublists with a special charcteristic: the sum of its elements must be equal to a value that I choose from the beggining.
I built a patch that can do exactly that but only one time. The pacth gives me two outputs: the first sublist result that I want to use (with the right sum of its elemments) and the rest of the main list (that is supposedly to pass trough the function again). That’s where I got stuck! I can’t send this new list again to the beggining of the patch. I gues the answer will be some recursive proccedure but I wasn’t able to do that. I tried but it didn’t work. I went over the tutorials and documentations but the examples weren’t enough for me to understand the concept.
Can someone help me?
Thank you very much!