Skip to content

Cannot modify individual list or dict item using set #374

Description

@TheWebTech

Code explains better than words could.

{% set items = ["item1","item2"] %}
{% set items[0] = "new value" %}
expected behavior: {{items}} = ["new value","item2"]
actual behavior: {{items}} = ["item1","item2"]

We have list functions, but none seem to recreate the same sort of simple functionality that many programming languages support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions