> 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()

`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="/files/Hby4gpUBe8eDokyMrpZ3" alt=""><figcaption></figcaption></figure>
