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.139 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.138 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.137 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.136 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.135 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.134 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.133 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.132 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.131 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.130 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.129 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.128 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.127 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.126 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.125 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.124 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.123 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.122 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.121 tracks/elixir/exercises/secret-handshake/.meta/hints.md
trackler-2.2.1.120 tracks/elixir/exercises/secret-handshake/.meta/hints.md