I have a numerical array of more than 50 numbers. My question is, is there a way of selecting for of them, check if their sum is equal to, say 15, and if 'yes' store them and remove them from the array?
The ultimate purpose is to find all sort of combinations, until there are no numbers left in the array.