> For the complete documentation index, see [llms.txt](https://levno-710.gitbook.io/prometheus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://levno-710.gitbook.io/prometheus/steps/wrapinfunction.md).

# WrapInFunction

{% hint style="info" %}
**Legacy mirror:** Prometheus documentation has moved to [**https://prometheus-lua.github.io/Prometheus/docs/**](https://prometheus-lua.github.io/Prometheus/docs/).\
This GitBook remains online for existing links/search results and may not always reflect the latest changes.
{% endhint %}

### Settings

| Name       | type   | description              |
| ---------- | ------ | ------------------------ |
| Iterations | number | The Number Of Iterations |

### Example

{% code title="in.lua" %}

```lua
print("Hello, World!")
```

{% endcode %}

{% code title="out.lua" %}

```lua
-- Iterations = 1
return (function()
    print("Hello, World!")
end)()
```

{% endcode %}
