fmd
05/13/2016, 1:29 PMcheckstyle check using Kotlin. In there I want to add an extension property that allows me to iterate over siblings of a checkstyle's DetailAST node, e.g. like for(sibling in node.siblings). The DetailAST allows traversal on siblings via a method DetailAST#getNextSibling. What's the best way to create some iterable out of it (maybe a Sequence)? Not sure where I should start, any idea would be appreciated.