Closed cwlucas41 closed 1 year ago
Ah, silly me !
isn't a NOT operator here so this makes sense. Maybe helping clarify what !
is would help. I had to go to the very dense manual to learn that it is a positional selector.
I didn't see this until now and you're right I should clarify
the except section includes:
Could you clarify why the
!
is necessary? To me it seems like a double-negative as I read the line in my head as "the sequence s except that not the the first index has value is FALSE". On first reading I actually expected this to modify index 2+ (all indexes not the first) due to the!
and would have thought that[s EXCEPT [1] = FALSE]
would do as intended.I found the text explaining how you think about the colon earlier very useful for being able to read the code better.
How do you think about the meaning of
Next == s' = [s EXCEPT ![1] = FALSE]
?