Skip to content

Allow arithmetic operations on tables (+, -, * and /) #16

@EwoutH

Description

@EwoutH

It would be very useful to be able to use arithmetic operations (+, -, * and / and potentially more) directly on tables.

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

So set fruit fruit + 1 would be allowed for example , which increases all the values in the table by one.

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