package util fun Iterable.expandWith(t: T): Sequence = this.asSequence() + generateSequence { t }.asSequence()