aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/data.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/data.spad.pamphlet')
-rw-r--r--src/algebra/data.spad.pamphlet4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/algebra/data.spad.pamphlet b/src/algebra/data.spad.pamphlet
index 2d84ac59..e5de8656 100644
--- a/src/algebra/data.spad.pamphlet
+++ b/src/algebra/data.spad.pamphlet
@@ -47,6 +47,10 @@ Byte(): Public == Private where
x >= y == byteGreaterEqual(x,y)$Foreign(Builtin)
min() == per 0
max() == per 255
+ size() == 256
+ index n == byte((n - 1) pretend NonNegativeInteger)
+ lookup x == (rep x + 1) pretend PositiveInteger
+ random() == byte random(size())$NonNegativeInteger
bitand(x,y) == bitand(x,y)$Foreign(Builtin)
bitior(x,y) == bitior(x,y)$Foreign(Builtin)