avrae / draconic

The Draconic language: a scripting language based off Python to run user scripts on the server safely.
MIT License
18 stars 9 forks source link

Set Operations #2

Closed Infinidoge closed 2 years ago

Infinidoge commented 4 years ago

Feature Request: The addition of Python's set operations

Who would use it? Working with sets, doing things like union, symmetric difference, difference, and intersection on sets

How would it work? Implement Python's standard set operators, namely |, ^, -, and & and their augmented assignment versions

Why should this be added? Anyone working with unordered sets of data could then perform these operations as they would expect within normal Python