I have a set of functions_names that i generate while iterating a list of values.
I want to capture these values “functions_names” in a list and use it for further processing.
How can i do that?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
FreeMarker doesn’t support modifying collections. But if you really want to do this in FreeMarker (as opposed to in Java), you can use sequence concatenation:
<#assign myList = myList + [newItem]>. Here you create a new sequence that wraps the two other sequences. Be aware that the resulting sequence is slow if you try to do indexed access in a long list constructed this way.