From c329f00ea7e24dff708ebf16abf2ea5a38030399 Mon Sep 17 00:00:00 2001 From: PatrickHaecker <152268010+PatrickHaecker@users.noreply.github.com> Date: Sun, 16 Feb 2025 09:28:30 +0100 Subject: [PATCH] Replace wrong function in `partition` comment `Base.count` does something else. --- src/IterTools.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IterTools.jl b/src/IterTools.jl index 3bb21a8..4aebd1a 100644 --- a/src/IterTools.jl +++ b/src/IterTools.jl @@ -261,9 +261,9 @@ end # Group output from at iterator into tuples. # E.g., -# partition(count(1), 2) = (1,2), (3,4), (5,6) ... -# partition(count(1), 2, 1) = (1,2), (2,3), (3,4) ... -# partition(count(1), 2, 3) = (1,2), (4,5), (7,8) ... +# partition(Iterators.countfrom(), 2) = (1,2), (3,4), (5,6) ... +# partition(Iterators.countfrom(), 2, 1) = (1,2), (2,3), (3,4) ... +# partition(Iterators.countfrom(), 2, 3) = (1,2), (4,5), (7,8) ... struct Partition{I, N, K} xs::I