Jactl is a secure, embeddable, scripting language for Java applications. Release 2.8 adds a new for-in statement and major compilation speed improvements. The new for loop looks like: for (pattern in collection) { ... } This matches a structural pattern with variable binding against elements of a collection and iterates over all matched elements. An alternative version uses strict matching and will fail if any element does not match: for (pattern: collection) { ... } Some examples: for (i in collection) {} // match all elements and bind each one to i for (int i in collection) {} // match all ints and bind to i for ([i,j] in collection) {} // bind i,j to each 2-element sublist in collection for ([i,_] in collection) {} // bind i to first element of each 2-element sublist for ([i,i] in collection) {} // match all 2-element sublists with identical elements for ([x,*] in collection) {} // bind x to head of all sublists of size >= 1 for ([h,*t] in collection) {} // bind h to head and t to remaining elements of…