aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Byte.to.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/tomo-Byte.to.3')
-rw-r--r--man/man3/tomo-Byte.to.36
1 files changed, 4 insertions, 2 deletions
diff --git a/man/man3/tomo-Byte.to.3 b/man/man3/tomo-Byte.to.3
index d98e25dd..39946e8d 100644
--- a/man/man3/tomo-Byte.to.3
+++ b/man/man3/tomo-Byte.to.3
@@ -2,7 +2,7 @@
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
-.TH Byte.to 3 2025-11-09 "Tomo man-pages"
+.TH Byte.to 3 2025-11-29 "Tomo man-pages"
.SH NAME
Byte.to \- iterate over a range of bytes
.SH LIBRARY
@@ -24,7 +24,7 @@ l l l l.
Name Type Description Default
first Byte The starting value of the range. -
last Byte The ending value of the range. -
-step Byte? An optional step size to use. If unspecified or `none`, the step will be inferred to be `+1` if `last >= first`, otherwise `-1`. none
+step Byte? An optional step size to use. If unspecified or \fBnone\fR, the step will be inferred to be \fB+1\fR if \fBlast >= first\fR, otherwise \fB-1\fR. none
.TE
.SH RETURN
An iterator function that returns each byte in the given range (inclusive).
@@ -41,3 +41,5 @@ assert [x for x in Byte(2).to(5)] == [Byte(2), Byte(3), Byte(4), Byte(5)]
assert [x for x in Byte(5).to(2)] == [Byte(5), Byte(4), Byte(3), Byte(2)]
assert [x for x in Byte(2).to(5, step=2)] == [Byte(2), Byte(4)]
.EE
+.SH SEE ALSO
+.BR Tomo-Byte (3)