meta-system icon indicating copy to clipboard operation
meta-system copied to clipboard

We need a new way of creating arrays that does not depend on the "Array Push" function

Open zelcion opened this issue 3 years ago • 0 comments

Description

Currently on MSYS, whenever we need to supply an array for a function to consume, we require the Array Push function to concatenate values into an array, which does not scale well when we can have 10 functions in the same BOP requiring arrays... making the process in the end quite bloated.

Solving Suggestion

As we currently have a way of creating objects keys in the "targetProp", we could also have an analogous version for creating arrays and setting an index of it, as the following:

  • Object creation: "targetProp": "bar.newKey"
  • ArrayCreation + index "targetProp": "foo.prop[0]" - "prop" is a key of the "foo" object, and the target prop ends up in being the "0" index in the array.

zelcion avatar Jun 12 '22 22:06 zelcion