Reputation: 9110
In C, given two numbers like this:
1010
0101
I can do something like this:
0000 == 1010&&0101;
1111 == 1010||0101;
Then is it possible to use Prolog do the same thing..?
Thank you!
Upvotes: 3
Views: 185
Reputation: 3791
In prolog, you can use the following operators for bitwise arithmatic
&& = /\
|| = \/
I hope this helps.
Upvotes: 5