# std

The `std` library is the Pattern Language's very own standard library. It contains various different helper functions and types as well wrappers for built-in functions.

{% hint style="danger" %}
**Never** use functions from the `builtin::` namespace directly! These functions are exposed by the runtime to provide native implementations of various functions.

Instead, include the correct library file and use the functions defined in there. Failing to do so will result in your pattern randomly breaking between updates.
{% endhint %}

{% hint style="info" %}
The [`io`](https://github.com/WerWolv/Documentation/blob/master/pattern_language/libraries/std/io.pat) and [`sys`](https://github.com/WerWolv/Documentation/blob/master/pattern_language/libraries/std/sys.pat) modules define members in the bare `std::` namespace.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.werwolv.net/pattern-language/libraries/std.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
