Array function to remove duplicates - ArrayRemoveDuplicates

Description

Create an array equivalent to listRemoveDuplicates() and member function myArray.removeDuplicates().

Attachments

1

Activity

Show:

Zac Spitzer 8 November 2021 at 11:43

the hardwired pi() value was coming back with an extra 4 digits of precision

Michael Offner 5 November 2021 at 17:20

great work on this! Please give the build a try

Pothys - MitrahSoft 11 October 2021 at 14:38

I added a function ArrayRemoveDuplicates

Pull Request:

Zac Spitzer 7 August 2020 at 11:26

 

alas, trycf wont save gists at the moment

Zac Spitzer 7 August 2020 at 09:21

There are a few common approaches to achieving this, either load the array items into a struct and then grab the key list, or use one of the array object methods, but there is a lot of overhead with closures.

This would be really useful

Fixed

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

Sprint

Fix versions

Priority

Created 22 July 2015 at 19:11
Updated 13 August 2022 at 15:09
Resolved 8 November 2021 at 12:02