The current release (4.0.7) supports Iterator
, but not Iterable
. For details, see the following method, which returns an Iterator
for use in the mapping operation.
Does/Can StringTemplate support Iterable
-
28-09-2022 - |
Question
I would like to iterate over a collection of data stored in an arbitrary data structure. The only interface I have is Iterable. Is this possible with StringTemplate?
<source:{e|e.stuff}>
class Source<HasStuff> implements Iterable<HasStuff> {
// Implementation
}
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow