aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-10-14 13:18:09 -0400
committerAnthony Wang2022-10-14 13:18:09 -0400
commit06354e150416acfc25c72e708cedba37f0eae3e1 (patch)
treeeedda9509d60a10a6c2bd68f3cb590129956c172
parent00f753eb81d9326b0eb6f8d9f344216de3582439 (diff)
Clarify initial array values of all 0 in README
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 45d0fc6..0220e87 100644
--- a/README.md
+++ b/README.md
@@ -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.