sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomek Rękawek (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SLING-7524) Sling Query - unique function does not not remove all duplicates
Date Wed, 07 Mar 2018 09:30:00 GMT

    [ https://issues.apache.org/jira/browse/SLING-7524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16389305#comment-16389305
] 

Tomek Rękawek commented on SLING-7524:
--------------------------------------

[~jebailey] - I gave it more thought and your arguments seems reasonable. As you wrote, jQuery,
Java Stream API, rxjava, etc. - they all have a similar method, so maybe we should have it
too.

Feel free to merge the PR. Also, please update the Javadoc: it says about the "adjacent" repeating
elements. I think it's also worth mentioning that it stores all the processed elements.

Thanks!

> Sling Query - unique function does not not remove all duplicates
> ----------------------------------------------------------------
>
>                 Key: SLING-7524
>                 URL: https://issues.apache.org/jira/browse/SLING-7524
>             Project: Sling
>          Issue Type: Improvement
>          Components: Sling Query
>            Reporter: Jason E Bailey
>            Assignee: Jason E Bailey
>            Priority: Major
>
> the function for unique does not match the contract a unique function usually provides
including JQuery, rather it's providing a sequential deduplicator.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message