Tracks
/
Elixir
Elixir
/
Syllabus
/
Bit Manipulation
Bi

Bit Manipulation in Elixir

7 exercises

About Bit Manipulation

Bitwise binary functions can be performed on integers using functions from the Bitwise module.

Bitwise.band(0b1110, 0b1001)
# => 8 # 0b1000

Bitwise.bxor(0b1110, 0b1001)
# => 7 # 0b0111
Edit via GitHub The link opens in a new window or tab

Learn Bit Manipulation

Practicing is locked

Unlock 5 more exercises to practice Bit Manipulation