> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace Values in a List

> AI context for Replace Values in a List. Not linked in navigation.

> This page is for AI assistant context only. To use this package, visit [community.ntop.com](https://community.ntop.com/packages/ntop/replace-values-in-a-list).

## Summary

This custom block replaces (substitutes) values of an initial list with newly defined values at the selected index of the initial list.

## Package Details

| Field            | Value                                              |
| ---------------- | -------------------------------------------------- |
| **ID**           | `replace-values-in-a-list`                         |
| **Type**         | Block                                              |
| **Author**       | nTop                                               |
| **Version**      | 1.0.0                                              |
| **nTop Version** | 5.44+                                              |
| **Domain**       | Geometry                                           |
| **Complexity**   | Beginner                                           |
| **Tags**         | `replace`, `list`, `index`, `substitution`, `data` |
| **License**      | MIT                                                |
| **Verified**     | Yes                                                |

***

This custom block replaces (substitutes) values of an initial list with newly defined values at the selected index of the initial list.

## Installation

Clone this repo or copy the package folder into your nTop workspace:

```bash theme={null}
git clone https://github.com/nTopology/Utilities.git
```

The package lives at `packages/ntop/replace-values-in-a-list/`.

## Inputs

| Name                | Type        | Description                                        |
| ------------------- | ----------- | -------------------------------------------------- |
| `Values`            | Scalar List | List of initial values                             |
| `Replacement index` | Integer     | Index of the list at which the replacement is done |
| `New values`        | Scalar List | List of new values to be replaced                  |

## Outputs

| Name             | Type        | Description                                                            |
| ---------------- | ----------- | ---------------------------------------------------------------------- |
| `Final list set` | Scalar List | Combining both halves to create the new list with the replaced values. |

## License

MIT.

***

## Source

[https://community.ntop.com/packages/ntop/replace-values-in-a-list](https://community.ntop.com/packages/ntop/replace-values-in-a-list)
