> 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/callable/callable.instructions.md).

# Callable.instructions()

Returns an Instructions object for the instructions of the function/modifier.

`instructions() →` [`Instructions`](/glider-ide/api/instructions.md)

The function will return all of the instructions directly reachable from the function.

## Example

```python
from glider import *
def query():
  functions = Functions().exec(1)

  instructions = []
  for instruction in functions[0].instructions().exec():
    # Return an array of all instructions for a function
    instructions.append(instruction)

  return instructions
```

## Example output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F9QTet1qioVdPH0V55e9K%2Fimage.png?alt=media&amp;token=9f803353-1a65-4b45-8c82-137f50f081ae" alt=""><figcaption></figcaption></figure>
