aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Int.to.3
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-11-29 13:27:11 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-11-29 13:27:11 -0500
commit353a1a40173d4722809e2cad215ab734bf68b283 (patch)
tree77055997b202fd028709af53ac13d8abd0a8c2ae /man/man3/tomo-Int.to.3
parenta0ea1840d837650b10ae4f9a3bb05ded08322510 (diff)
Improved manpages.
Diffstat (limited to 'man/man3/tomo-Int.to.3')
-rw-r--r--man/man3/tomo-Int.to.36
1 files changed, 4 insertions, 2 deletions
diff --git a/man/man3/tomo-Int.to.3 b/man/man3/tomo-Int.to.3
index ea8112bc..9c0fe4dc 100644
--- a/man/man3/tomo-Int.to.3
+++ b/man/man3/tomo-Int.to.3
@@ -2,7 +2,7 @@
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
-.TH Int.to 3 2025-09-21 "Tomo man-pages"
+.TH Int.to 3 2025-11-29 "Tomo man-pages"
.SH NAME
Int.to \- iterate a range of integers
.SH LIBRARY
@@ -24,7 +24,7 @@ l l l l.
Name Type Description Default
first Int The starting value of the range. -
last Int The ending value of the range. -
-step Int? 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 Int? 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 integer in the given range (inclusive).
@@ -42,3 +42,5 @@ assert [x for x in (2).to(5)] == [2, 3, 4, 5]
assert [x for x in (5).to(2)] == [5, 4, 3, 2]
assert [x for x in (2).to(5, step=2)] == [2, 4]
.EE
+.SH SEE ALSO
+.BR Tomo-Int (3)