I have written a code in java and now I have to convert it to Xtend templates. However I have the following written with a while loop.
index = refin.size()-1
while (index > 0){
System.out.println(refin.get(index) + "::=" + refin.get(index-1))
index-=2
}
Now I see that Xtend templates do not support WHILE, and also I cannot write the following:
«FOR index : refin.size()-1 ; index >= 0 ; index -=2»
Any ideas on how I could use that while loop (or something similar) to do the same thing that I am doing there, in Xtend templates?
Many thanks!
For me it works fine