diff options
author | nea <romangraef@gmail.com> | 2021-08-13 01:04:47 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2021-08-13 01:04:47 +0200 |
commit | d56753eb5de3049e094ed3a612c500c9516600c5 (patch) | |
tree | ff721f072e9ef476e668f1d4feb61befe66a0c09 /src/jsMain/kotlin/util | |
parent | 06d9212e5901b8b73e17bb8938b0c4542a42770b (diff) | |
download | webos-d56753eb5de3049e094ed3a612c500c9516600c5.tar.gz webos-d56753eb5de3049e094ed3a612c500c9516600c5.tar.bz2 webos-d56753eb5de3049e094ed3a612c500c9516600c5.zip |
tests
Diffstat (limited to 'src/jsMain/kotlin/util')
-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() + |