diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-28 03:01:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-28 03:01:00 +0000 |
commit | ecdf859b6ce481abfd530425dcf6f0f764bd0001 (patch) | |
tree | 13bc161dc046876ac6c92fce5f9f5034ba9aa573 /graphics/asymptote/base/plain.asy | |
parent | 790995b7e79697514364450bf9c04f1b8d500838 (diff) |
CTAN sync 202112280300
Diffstat (limited to 'graphics/asymptote/base/plain.asy')
-rw-r--r-- | graphics/asymptote/base/plain.asy | 8 |
1 files changed, 7 insertions, 1 deletions
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);} |