a = 5 b = 6 use Bitwise IO.puts("a &&& b " <> to_string(a &&& b)) IO.puts("a ||| b " <> to_string(a ||| b)) IO.puts("a >>> b " <> to_string(a >>> b)) IO.puts("a <<< b" <> to_string(a <<< b)) IO.puts("a ^^^ b " <> to_string(a ^^^ b)) IO.puts("~~~a " <> to_string(~~~a))
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more