On 02/04/2017 03:53 PM, Profile Anaysis wrote:
well, I simply took the code from the page I linked and did a front() on
the MapResult and it say the type was wrong. I thought it would give me
the type I put in which was an array.
In the code you can see that powerSet does two levels of `map`.
On Saturday, 4 February 2017 at 14:35:37 UTC, ag0aep6g wrote:
On 02/04/2017 12:31 PM, Profile Anaysis wrote:
I am trying to iterate over the combinations of a set using
the code
https://rosettacode.org/wiki/Power_set#D
I have an array which I call powerSet on and I get a result of
MapResult.
On 02/04/2017 12:31 PM, Profile Anaysis wrote:
I am trying to iterate over the combinations of a set using the code
https://rosettacode.org/wiki/Power_set#D
I have an array which I call powerSet on and I get a result of
MapResult. I have tried to foreach or front/popFront and even each() on
it
I am trying to iterate over the combinations of a set using the
code
https://rosettacode.org/wiki/Power_set#D
I have an array which I call powerSet on and I get a result of
MapResult. I have tried to foreach or front/popFront and even
each() on it but I can never get the result as the same