Primaries:
The number system presented here is split into primaries and secondaries. First we will discuss the primaries.
The primaries are symbols designed to represent two possible states, i.e. binary. They are read left to right and are little endian (LSB last).
Symbols:
Start with a box:
It is empty,
therefore it is zero, nothing, false, no.
Fill the box:
It is full,
therefore it is one, something, true, yes.
Values:
The symbols above explicitly represent binary values 0 and 1.
Note that the symbols above are not the same as or different from the value
Null. Null is a type of its own, representing an unknown value.
Sequence:
Assert a fixed number of objects, in sequence, in a list. Iterate through
as follows:
Start with value
for first object. Increment
for each remaining object.
Those of you who are familiar with binary will know what is happening
here straight away. For those of you who don't, you are counting using digits
0 and 1 rather than 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
Counting:
Assert an unknown number of objects to be counted. Count them as follows:
Start with value
. Iterate through objects incrementing
for each object.
In this example, we counted four objects.