Sha256: 9d19bf67ce4921c2cc202e5e01760c478ca3ca8ed924ec4fd21ba7c90e33e090

Contents?: true

Size: 450 Bytes

Versions: 257

Compression:

Stored size: 450 Bytes

Contents

use Bitwise (or div/rem)

If you use Bitwise, an easy way to see if a particular bit is set is to compare
the binary AND (`&&&`) of a set of bits with the particular bit pattern you
want to check, and determine if the result is the same as the pattern you're
checking.

Example:

Flags: 0b11011
Check: 0b11010

Flags &&& Check: 0b11010 (All checked bits are set)

Another:

Flags: 0b11011
Check: 0b10110

Flags &&& Check: 0b10010 (Third bit not set)

Version data entries

257 entries across 257 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.179 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.178 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.177 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.176 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.175 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.174 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.173 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.172 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.171 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.170 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.169 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.167 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.166 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.165 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.164 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.163 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.162 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.161 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.160 tracks/elixir/exercises/secret-handshake/.meta/hints.md