This function illustrates the real power of recursion. Assuming that we can calculate the powerset of S minus its first element,
the powerset of S is obtained by adding a systematic combination of the first element with each and every set in the smaller powerset. The solution is inspired directly from Christian Wagenknecht's book 'Programmierparadigmen', from Springer Verlag.