> 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_constructor.md).

# Function.is\_constructor()

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

`is_constructor() → bool`

## Example

```python
from glider import *

def query():
    constructors = (
      Functions()
      .exec(100)
      .filter(lambda x: x.is_constructor())
    )

    return constructors
```

## Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F8lwxqGM9XoFcs9kbHn3C%2Fimage.png?alt=media&amp;token=77c06645-7eef-43ce-bdd6-470ce65004e6" alt=""><figcaption></figcaption></figure>
