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.

Agustin Mendez, Software Engineer @ Decentraland

`[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.

Agustin Mendez, Software Engineer @ Decentraland