> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/function/function.is_pure.md).

# Function.is\_pure()

Returns true if the function is pure, otherwise returns false.

`is_pure() → bool`

## Example

```python
from glider import *

def query():
    pure_functions = (
      Functions()
      .exec(100)
      .filter(lambda x: x.is_pure())
    )

    return pure_functions
```

## Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FrVC9RTog0IIB8mMdkyGd%2Fimage.png?alt=media&amp;token=4dc8c109-4cae-42fc-9ecf-aa4a883258e2" alt=""><figcaption></figcaption></figure>
