title: Generating an array of arrays that when added equals a given number
body: <p>i'm working on a bigger problem but am a little stuck on a certain issue. Hopefully, I can explain it clearly! I am looking to generate an array of arrays where each individual array has elements then when added together equal a certain number. An example would be:</p>
  
  <p>target = 4</p>
  
  <p>solution : [[1,1,1,1], [1,1,2], [2,2], [1,3], [4]]</p>
  
  <p>edit: to make the question more clear, the solution should contain every possible combination of positive integers that will equal the target</p>