freemarker-notifications mailing list archives

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


Jasper de Vries commented on FREEMARKER-131:

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:
>             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

View raw message