10

Allow other characters for entry for Position for Array Push and Array Pop

Arrays can be used as queues if `%array_name(#)` can be used in the Position field. I know a very large integer can be used but `%array_name(#)` conveys intention much better.

6 replies

TP

This is sort of a given that the field should work this way. I even see it more of a bug fix than feature request.

I wouldn't be surprised if just removing the data type (i.e. the forced numeric keypad entry) that field would already be ready to accept any equation/function that evaluates to a number.

Just to point out that we need maths in the parameter. I agree with Robert that any mathematical function.

RR

It would also useful if other array operations could be used here. For example, arr(#?*cat*) to pop the first element that contains the word cat.

RR

I think any mathematical should be allowed in the position field. This is the way push and pop work in most other languages.

NY

Yes, although that doesn't change the intent of the request since the point is that it's not possible to enter in the `(#)` much less the `+1`.

For a Push don't you mean %array_name(#)+1?