diff options
Diffstat (limited to 'src/jsMain/kotlin/util/sequence.kt')
-rw-r--r-- | src/jsMain/kotlin/util/sequence.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jsMain/kotlin/util/sequence.kt b/src/jsMain/kotlin/util/sequence.kt new file mode 100644 index 0000000..72b07dc --- /dev/null +++ b/src/jsMain/kotlin/util/sequence.kt @@ -0,0 +1,5 @@ +package util + +fun <T> Iterable<T>.expandWith(t: T): Sequence<T> = + this.asSequence() + generateSequence { t }.asSequence() + |