add array like key functions/methods for ordered structs

Description

As Ordered structs are like rather like arrays, they should have some array like methods for working with keys

  • StructPrepend i.e. like javascript unshift

  • StructKeyFirst i.e struct.keyArray()[1];

  • StructKeyLast i.e struct.keyArray()[struct.len()];

  • StructKeyReverse

  • StructKeySort

  • StructKeyPop

  • StructKeyShift

etc

these could simply throw an error if the struct isn't ordered

Activity

Show:

Details

Assignee

Reporter

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 26 November 2020 at 19:02
Updated 26 November 2020 at 19:02

Flag notifications