diff options
Diffstat (limited to 'man/man3/tomo-Int.to.3')
| -rw-r--r-- | man/man3/tomo-Int.to.3 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/man/man3/tomo-Int.to.3 b/man/man3/tomo-Int.to.3 index 9c0fe4dc..e5ba9158 100644 --- a/man/man3/tomo-Int.to.3 +++ b/man/man3/tomo-Int.to.3 @@ -1,8 +1,8 @@ '\" t -.\" Copyright (c) 2025 Bruce Hill +.\" Copyright (c) 2026 Bruce Hill .\" All rights reserved. .\" -.TH Int.to 3 2025-11-29 "Tomo man-pages" +.TH Int.to 3 2026-01-19 "Tomo man-pages" .SH NAME Int.to \- iterate a range of integers .SH LIBRARY @@ -31,16 +31,16 @@ An iterator function that returns each integer in the given range (inclusive). .SH EXAMPLES .EX -iter := (2).to(5) +iter := 2.to(5) assert iter() == 2 assert iter() == 3 assert iter() == 4 assert iter() == 5 assert iter() == none -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] +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) |
