freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasper de Vries (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (FREEMARKER-131) Add distinct built-in to sequence
Date Wed, 12 Feb 2020 14:56:00 GMT

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

Jasper de Vries edited comment on FREEMARKER-131 at 2/12/20 2:55 PM:
---------------------------------------------------------------------

Sure, I can (and already did) take care of it in the backend and add it to the model. That's
probably the best place to do it, but I think the same thing goes for the {{?map}} built-in.
For me that would also be the only proper use I see for {{?distinct}} (applying it on the
result of a map operation). But, again, I see your point.

Thanks for your feedback!


was (Author: jepsar):
Sure, I can (and already did) take care of it in the backend and add it to the model. That's
probably the best place to do it, but I think the same thing goes for the {{?map}} built-in.
For me that would also be the only proper use I see for {{?distinct}} (applying it on the
result of a map operation). But, gain, I see your point.

Thanks for your feedback!

> Add distinct built-in to sequence
> ---------------------------------
>
>                 Key: FREEMARKER-131
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-131
>             Project: Apache Freemarker
>          Issue Type: Wish
>            Reporter: Jasper de Vries
>            Priority: Major
>
> {code}
> ["a", "a", "b", "c", "c"]?distinct
> {code}
> should return:
> {code}
> ["a", "b", "c"]
> {code}
> Order does not matter, you can always sort later if it does.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message