# Are there list building macros in PGF/Tikz?

In Mathematica, C# linq, or other languages, we can use auxiliary functions to produce list of certain pattern.

For example:

1. In Mathematica, we can use Table[] or Range[] to produce a list of numbers in the specified pattern.
2. In C#, we can also use Range to produce a list of consecutive integers.

I need this kind of function also in PGF/Tikz to be consumed by \foreach.

Are there list building macros in PGF/Tikz?

-

• \foreach \x in {0\pi,0.5\pi,...\pi,3\pi} {$\x$, } yields 0π, 0.5π, 1π, 1.5π, 2π, 2.5π, 3π,