fmd
05/13/2016, 1:41 PMval DetailAST.siblings: Sequence<DetailAST>
get() = Sequence {
object : Iterator<DetailAST> {
var nextSibling : DetailAST? = getNextSibling()
override fun next(): DetailAST {
val value = nextSibling ?: throw NoSuchElementException()
nextSibling = value.nextSibling
return value
}
override fun hasNext(): Boolean {
return nextSibling != null
}
}
}