Z
Zangief Ief
Hi,
If my number is 1111, I would like to had 0000.
If my number is 1001, I would like to had 0110.
If my number is 0011, I would like to had 1100.
Of cours I know we can use XOR operator, but I would like to allow Ruby
to do it more simply, just by using a function as simple as possible. I
a sure this kind of function is yet setup in Ruby, but I don't know what
is his name.
Thank you for help.
Zang
If my number is 1111, I would like to had 0000.
If my number is 1001, I would like to had 0110.
If my number is 0011, I would like to had 1100.
Of cours I know we can use XOR operator, but I would like to allow Ruby
to do it more simply, just by using a function as simple as possible. I
a sure this kind of function is yet setup in Ruby, but I don't know what
is his name.
Thank you for help.
Zang