diff options
author | Anthony Wang | 2022-10-14 13:18:09 -0400 |
---|---|---|
committer | Anthony Wang | 2022-10-14 13:18:09 -0400 |
commit | 06354e150416acfc25c72e708cedba37f0eae3e1 (patch) | |
tree | eedda9509d60a10a6c2bd68f3cb590129956c172 | |
parent | 00f753eb81d9326b0eb6f8d9f344216de3582439 (diff) |
Clarify initial array values of all 0 in README
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ Let me break that down for you: - Single-instruction means that Flip only has one instruction. WTF, one instruction? -Flip uses a single 2-by-infinity array of bits for memory. That's all the memory you get, sorry. +Flip uses a single 2-by-infinity array of bits for memory, initially all 0. That's all the memory you get, sorry. The only instruction is `flip(x, y)` where `x` is 0 or 1 and `y` is an integer. This flips the bit at index `(x, y)` in the array and returns the flipped value. You can nest `flip(x, y)`, but only for the first parameter. So, `flip(flip(flip(a, b), c), d)` is valid while `flip(flip(a, b), flip(c, d))` is not. |