You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Jasper de Vries (Jira)" <ji...@apache.org> on 2020/02/12 14:56:00 UTC

[jira] [Comment Edited] (FREEMARKER-131) Add distinct built-in to sequence

    [ 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)