Thanks to `[head ~ tail]`

in DataWeave 2.0 we can easily create infinite sequence generators.

In this case we are implementing the Leibnizâ€™s series to calculate an approximation of PI.

`[head ~ tail]`

in DataWeave 2.0 we can easily create infinite sequence generators.

In this case we are implementing the Leibnizâ€™s series to calculate an approximation of PI.