I have an integer collection. I need to get all possibilites that sum of values are equal to X.

I need something like [this](http://gofrom.us/FQ4).

It can be written in: delphi, c#, php, RoR, python, cobol, vb, vb.net