From 5042498c8fe12751c1b6560ae1fde07e7cd78259 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 20 Aug 2021 15:33:32 +0200 Subject: aaaaaaaa --- src/main/kotlin/util/sequence.kt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/main/kotlin/util/sequence.kt (limited to 'src/main/kotlin/util') diff --git a/src/main/kotlin/util/sequence.kt b/src/main/kotlin/util/sequence.kt new file mode 100644 index 0000000..72b07dc --- /dev/null +++ b/src/main/kotlin/util/sequence.kt @@ -0,0 +1,5 @@ +package util + +fun Iterable.expandWith(t: T): Sequence = + this.asSequence() + generateSequence { t }.asSequence() + -- cgit