@almadar/std 16.22.0 → 16.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -375,6 +375,17 @@ var CORE_OPERATORS = {
375
375
  params: [{ name: "...exprs", type: SEXPR, description: "Effects/expressions to run in order" }],
376
376
  example: '["do", ["set", "@entity.x", 0], ["set", "@entity.y", 0]]'
377
377
  },
378
+ list: {
379
+ module: "core",
380
+ category: "control",
381
+ minArity: 0,
382
+ maxArity: null,
383
+ description: "Literal array constructor \u2014 evaluates each argument and returns them as an array. Lowering wraps a literal list bound for a literal-array slot in `list` so it is unambiguously data, never a call (disambiguates a list whose first element collides with an operator name, e.g. [path method \u2026]).",
384
+ hasSideEffects: false,
385
+ returnType: "array",
386
+ params: [{ name: "...items", type: SEXPR, description: "Items to collect into a literal array" }],
387
+ example: '["list", "path", "method", "status"] // => ["path", "method", "status"]'
388
+ },
378
389
  when: {
379
390
  module: "core",
380
391
  category: "control",