missing Array Splice function

Description

I can't find a splice function in the docs.
For now I am using the java Remove function to remove an element from an existing array by providing an index of the element to be removed. ( and thus reducing the array.
The function should return the removed element and not a boolean.

The splice function could simulate the Javascript splice function if possible.

Activity

Show:

Pothys - MitrahSoft 18 November 2021 at 15:16

John Wilson 18 January 2021 at 15:25

Great - thank you!

Pothys - MitrahSoft 18 January 2021 at 14:46

, In lucee also have both function and memberfunctions for arraysplice and works fine too. Available fromlatest build version 6.0.0.19-SNAPSHOT.

Example:

Function:

Member function:

John Wilson 15 January 2021 at 20:23

ACF has both arraySplice and array.splice(), which would have been immensely helpful today. Please add.

Brandon Brown 18 June 2018 at 16:48

I added the ArraySplice function in this extension. https://github.com/Yamaha32088/extension-arrayfunctions

Unresolved

Details

Assignee

Reporter

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

Fix versions

Priority

Created 23 November 2015 at 02:13
Updated 18 November 2021 at 15:17