Re: sweeter syntax
"Ruud H.G. van Tol" <[email protected]> Sun, 21 Dec 2025 17:46:16 +0100
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2025-12-21 15:38, Ruud H.G. van Tol wrote: > Maybe make [3..10, 2] return [3,5,7,9]. > > Maybe make [3..10, Mod(1,2)] return [3,5,7,9]. Maybe make [a..b][-1] return b (if a <= b). And [a..b][-2] return b-1 (if a < b). I would now use [a..b][-2..-1][1], if no variables are available. -- Ruud