Closed steeling closed 4 months ago
In a given schema, is there an easy way to extend an array?
ie:
schema MyApp: args: [str] = ["default", "args"] app = MyApp { args: args + ["additional", "args"] // how to syntactically support adding new items to an array? }
Just use the += operator
schema MyApp: args: [str] = ["default", "args"] app = MyApp { args += ["additional", "args"] }
Hey @Peefy, #348 PR made.
In a given schema, is there an easy way to extend an array?
ie: