freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ondra Žižka (JIRA) <>
Subject [jira] [Created] (FREEMARKER-8) Assigning to a hash
Date Mon, 09 Nov 2015 23:37:11 GMT
Ondra Žižka created FREEMARKER-8:

             Summary: Assigning to a hash
                 Key: FREEMARKER-8
             Project: Apache Freemarker
          Issue Type: New Feature
          Components: engine
    Affects Versions: 2.3.23
            Reporter: Ondra Žižka

It would be nice to assign to a map this way:

<#assign map["key"] = 1>

and also 
<#assign map["key"]++>

So far I think it's like this but can't get it work:
<#assign map += {classification.classification : map[classification.classification]!++}>

Thanks for considering.

This message was sent by Atlassian JIRA

View raw message