summaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/sequence.kt
blob: 72b07dce5fb9c095f39e27cdd50ed8e9aed3c589 (plain)
1
2
3
4
5
package util

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