From ecdf859b6ce481abfd530425dcf6f0f764bd0001 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 28 Dec 2021 03:01:00 +0000 Subject: CTAN sync 202112280300 --- graphics/asymptote/base/plain.asy | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'graphics/asymptote/base/plain.asy') diff --git a/graphics/asymptote/base/plain.asy b/graphics/asymptote/base/plain.asy index 365aad02c7..cac6aa0722 100644 --- a/graphics/asymptote/base/plain.asy +++ b/graphics/asymptote/base/plain.asy @@ -150,7 +150,13 @@ void initdefaults() // Return the sequence n,...,m int[] sequence(int n, int m) { - return sequence(new int(int x){return x;},m-n+1)+n; + return n+sequence(m-n+1); +} + +// Return the sequence n,...,m skipping by skip +int[] sequence(int n, int m, int skip) +{ + return n+skip*sequence((m-n)#skip+1); } int[] reverse(int n) {return sequence(new int(int x){return n-1-x;},n);} -- cgit v1.2.3