The point here is that the hypothetical ~(<1>) construction is an *infinite* set. It represents the set of all things that can ever exist, except for the integer 1. (In fact it might be even worse: The multiset that contains an infinite number of each thing that can ever exist, except for the integer 1).
/ Niels Möller ()
Previous text:
2003-02-06 16:48: Subject: Re: Xor
On Thu, Feb 06, 2003 at 03:10:03PM +0100, Niels Möller () @ Pike (-) developers forum wrote:
First write an iterator code that generates all strings, starting with the empty string, all one-character strings, all two-character strings, and so on.
i'd just do sort(indices(~(<1>)) and iterate over that.
greetings, martin.
/ Brevbäraren