From: "Jan E." Date: 2012-07-05T04:16:47+09:00 Subject: Re: Compute the lexicographically next bit permutation Hi, Raghu G. wrote in post #1067440: > How could this be implemented in ruby? Ruby has all the bit operators, so you can actually copy the code. You only have to do the two's complement manually. -- Posted via http://www.ruby-forum.com/.