Skip to content

Allow (re)setting all table values at once #17

@EwoutH

Description

@EwoutH

It would be very useful to be able to set the values for all keys in a table at once, for example to reset counters.

Considering the following table:

let fruit table:make
table:put fruit "apple" 2
table:put fruit "orange" 5
table:put fruit "banana" 3

Something like table:set-all fruit 0 should set all the values to 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions