Move debugger test data to the new location

This commit is contained in:
Yan Zhulanow
2019-09-27 00:13:53 +09:00
parent b4cc5703de
commit d8d81c51d7
1423 changed files with 0 additions and 0 deletions
@@ -0,0 +1,6 @@
package streams.collection.checks
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2).all { it % 2 == 0 }
}
@@ -0,0 +1,6 @@
package streams.collection.checks
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2).all { it < 10 }
}
@@ -0,0 +1,17 @@
LineBreakpoint created at AllMatchFalse.kt:5
Run Java
Connected to the target VM
AllMatchFalse.kt:5
listOf(1, 2)
.all({ it % 2 == 0 })
all
before: 2
after: nothing
mappings for all
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at AllMatchTrue.kt:5
Run Java
Connected to the target VM
AllMatchTrue.kt:5
listOf(1, 2)
.all({ it < 10 })
all
before: 2
after: nothing
mappings for all
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.collection.distinct
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2, 3, 4, 3, 2, 1).distinct()
}
@@ -0,0 +1,6 @@
package streams.collection.distinct
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2, 3, 4, 5).distinctBy { it % 2 }
}
@@ -0,0 +1,17 @@
LineBreakpoint created at Distinct.kt:5
Run Java
Connected to the target VM
Distinct.kt:5
listOf(1, 2, 3, 4, 3, 2, 1)
.distinct()
distinct
before: 7
after: nothing
mappings for distinct
direct:
7 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at DistinctBy.kt:5
Run Java
Connected to the target VM
DistinctBy.kt:5
listOf(1, 2, 3, 4, 5)
.distinctBy({ it % 2 })
distinctBy
before: 5
after: nothing
mappings for distinctBy
direct:
5 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.collection.filter
fun main(args: Array<String>) {
// Breakpoint!
listOf("abc", "bde", "gh").filter { it.length < 3 }.count()
}
@@ -0,0 +1,6 @@
package streams.collection.filter
fun main(args: Array<String>) {
// Breakpoint!
listOf("23", "54", "4543").filter { it.length < 3 }
}
@@ -0,0 +1,6 @@
package streams.collection.filter
fun main(args: Array<String>) {
// Breakpoint!
listOf(Any(), Any(), Any()).filter { false }.count()
}
@@ -0,0 +1,6 @@
package streams.collection.filter
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2, 3).filter { it == 2 }.count()
}
@@ -0,0 +1,6 @@
package streams.collection.filter
fun main(args: Array<String>) {
// Breakpoint!
byteArrayOf(1, 3, 50).filter { it == 50.toByte() }
}
@@ -0,0 +1,18 @@
LineBreakpoint created at FilterAsIntermediate.kt:5
Run Java
Connected to the target VM
FilterAsIntermediate.kt:5
listOf("abc", "bde", "gh")
.filter({ it.length < 3 })
.count()
filter
before: 4,6,8
after: 8
count
before: 10
after: nothing
Exception caught: junit.framework.AssertionFailedError, null
Disconnected from the target VM
WRONG!
Process finished with exit code 0
@@ -0,0 +1,21 @@
LineBreakpoint created at FilterAsTerminal.kt:5
Run Java
Connected to the target VM
FilterAsTerminal.kt:5
listOf("23", "54", "4543")
.filter({ it.length < 3 })
filter
before: 4,6,8
after: 4,6
mappings for filter
direct:
4 -> 4
6 -> 6
8 -> nothing
reverse:
4 <- 4
6 <- 6
Disconnected from the target VM
WRONG!
Process finished with exit code 0
@@ -0,0 +1,29 @@
LineBreakpoint created at FilterPassNothing.kt:5
Run Java
Connected to the target VM
FilterPassNothing.kt:5
listOf(Any(), Any(), Any())
.filter({ false })
.count()
filter
before: 4,6,8
after: nothing
count
before: nothing
after: nothing
mappings for filter
direct:
4 -> nothing
6 -> nothing
8 -> nothing
reverse:
empty
mappings for count
direct:
empty
reverse:
empty
Disconnected from the target VM
WRONG!
Process finished with exit code 0
@@ -0,0 +1,18 @@
LineBreakpoint created at FilterPrimitive.kt:5
Run Java
Connected to the target VM
FilterPrimitive.kt:5
listOf(1, 2, 3)
.filter({ it == 2 })
.count()
filter
before: 4,6,8
after: 6
count
before: 10
after: nothing
Exception caught: junit.framework.AssertionFailedError, null
Disconnected from the target VM
WRONG!
Process finished with exit code 0
@@ -0,0 +1,20 @@
LineBreakpoint created at FilterPrimitiveAsTermination.kt:5
Run Java
Connected to the target VM
FilterPrimitiveAsTermination.kt:5
byteArrayOf(1, 3, 50).asIterable()
.filter({ it == 50.toByte() })
filter
before: 4,6,8
after: 8
mappings for filter
direct:
4 -> nothing
6 -> nothing
8 -> 8
reverse:
8 <- 8
Disconnected from the target VM
WRONG!
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.collection.final
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2, 3, 4).average()
}
@@ -0,0 +1,17 @@
LineBreakpoint created at Average.kt:5
Run Java
Connected to the target VM
Average.kt:5
listOf(1, 2, 3, 4)
.average()
average
before: 4
after: nothing
mappings for average
direct:
4 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.collection.flatMap
fun main(args: Array<String>) {
// Breakpoint!
listOf(2, 3).flatMap { 0..it }
}
@@ -0,0 +1,17 @@
LineBreakpoint created at FlatMap.kt:5
Run Java
Connected to the target VM
FlatMap.kt:5
listOf(2, 3)
.flatMap({ 0..it })
flatMap
before: 2
after: nothing
mappings for flatMap
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.collection.grouping
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2, 3, 4, 5).groupBy { it % 2 }
}
@@ -0,0 +1,17 @@
LineBreakpoint created at GroupBy.kt:5
Run Java
Connected to the target VM
GroupBy.kt:5
listOf(1, 2, 3, 4, 5)
.groupBy({ it % 2 })
groupBy
before: 5
after: nothing
mappings for groupBy
direct:
5 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.collection.map
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2).map { it * it }
}
@@ -0,0 +1,8 @@
package streams.collection.map
fun main(args: Array<String>) {
val dst = mutableListOf(1, 2, 3)
// Breakpoint!
listOf(4, 5, 6).mapTo(dst, { it * it }).filter { it % 4 != 0 }.mapTo(dst, { it * it })
println(dst)
}
@@ -0,0 +1,17 @@
LineBreakpoint created at Map.kt:5
Run Java
Connected to the target VM
Map.kt:5
listOf(1, 2)
.map({ it * it })
map
before: 2
after: nothing
mappings for map
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,18 @@
LineBreakpoint created at MapToSameCollection.kt:6
Run Java
Connected to the target VM
MapToSameCollection.kt:6
listOf(4, 5, 6)
.mapTo(dst, { it * it })
mapTo
before: 3
after: nothing
mappings for mapTo
direct:
3 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
[1, 2, 3, 16, 25, 36, 16, 25, 36, 1, 4, 9, 625, 625]
@@ -0,0 +1,6 @@
package streams.collection.misc
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2).indexOf(2)
}
@@ -0,0 +1,17 @@
LineBreakpoint created at IndexOf.kt:5
Run Java
Connected to the target VM
IndexOf.kt:5
listOf(1, 2)
.indexOf(2)
indexOf
before: 2
after: nothing
mappings for indexOf
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.collection.source
fun main(args: Array<String>) {
// Breakpoint!
arrayOf("23", "34").count()
}
@@ -0,0 +1,7 @@
package streams.collection.source
fun main(args: Array<String>) {
val collection: Collection<Any> = listOf(1, 2, 3, 5)
// Breakpoint!
collection.count { it == 3 }
}
@@ -0,0 +1,6 @@
package streams.collection.source
fun main(args: Array<String>) {
// Breakpoint!
booleanArrayOf(true, false).count()
}
@@ -0,0 +1,6 @@
package streams.collection.source
fun main(args: Array<String>) {
// Breakpoint!
"Hello World!".count { it.isUpperCase() }
}
@@ -0,0 +1,17 @@
LineBreakpoint created at ArrayAsSource.kt:5
Run Java
Connected to the target VM
ArrayAsSource.kt:5
arrayOf("23", "34").asIterable()
.count()
count
before: 2
after: nothing
mappings for count
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at CollectionAsSource.kt:6
Run Java
Connected to the target VM
CollectionAsSource.kt:6
collection
.count({ it == 3 })
count
before: 4
after: nothing
mappings for count
direct:
4 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at PrimitiveArrayAsSource.kt:5
Run Java
Connected to the target VM
PrimitiveArrayAsSource.kt:5
booleanArrayOf(true, false).asIterable()
.count()
count
before: 2
after: nothing
mappings for count
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at StringAsSource.kt:5
Run Java
Connected to the target VM
StringAsSource.kt:5
"Hello World!"
.count({ it.isUpperCase() })
count
before: 12
after: nothing
mappings for count
direct:
12 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.collection.zip
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2).zip(listOf(1, 4, 8))
}
@@ -0,0 +1,6 @@
package streams.collection.zip
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2, 3).zip(listOf(1, 4))
}
@@ -0,0 +1,6 @@
package streams.collection.zip
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2, 3).zip(listOf(1, 4, 8))
}
@@ -0,0 +1,17 @@
LineBreakpoint created at ZipWithGreater.kt:5
Run Java
Connected to the target VM
ZipWithGreater.kt:5
listOf(1, 2)
.zip(listOf(1, 4, 8))
zip
before: 2
after: nothing
mappings for zip
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at ZipWithLesser.kt:5
Run Java
Connected to the target VM
ZipWithLesser.kt:5
listOf(1, 2, 3)
.zip(listOf(1, 4))
zip
before: 3
after: nothing
mappings for zip
direct:
3 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at ZipWithSame.kt:5
Run Java
Connected to the target VM
ZipWithSame.kt:5
listOf(1, 2, 3)
.zip(listOf(1, 4, 8))
zip
before: 3
after: nothing
mappings for zip
direct:
3 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,4 @@
fun main(args: Array<String>) {
// Breakpoint!
listOf(1, 2, 3).stream().toArray()
}
@@ -0,0 +1,21 @@
LineBreakpoint created at Simple.kt:3
Run Java
Connected to the target VM
Simple.kt:3
listOf(1, 2, 3).stream()
.toArray()
toArray
before: 1,2,3
after: 4,5,6
mappings for toArray
direct:
1 -> 4
2 -> 5
3 -> 6
reverse:
1 <- 4
2 <- 5
3 <- 6
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.sequence.append
fun main(args: Array<String>) {
//Breakpoint!
listOf(1, 2, 3).asSequence().plus(arrayOf(3, 4, 5)).count()
}
@@ -0,0 +1,6 @@
package streams.sequence.append
fun main(args: Array<String>) {
//Breakpoint!
sequenceOf(1, 2).plusElement(10).count()
}
@@ -0,0 +1,6 @@
package streams.sequence.append
fun main(args: Array<String>) {
//Breakpoint!
sequenceOf(10, 20).plus(sequenceOf(30, 40)).count()
}
@@ -0,0 +1,6 @@
package streams.sequence.append
fun main(args: Array<String>) {
//Breakpoint!
sequenceOf(10, 20).plus(30).count()
}
@@ -0,0 +1,38 @@
LineBreakpoint created at PlusArray.kt:5
Run Java
Connected to the target VM
PlusArray.kt:5
listOf(1, 2, 3).asSequence()
.plus(arrayOf(3, 4, 5))
.count()
plus
before: 1,3,5
after: 2,4,6,7,8,9
count
before: 2,4,6,7,8,9
after: nothing
mappings for plus
direct:
1 -> 2
3 -> 4
5 -> 6
reverse:
1 <- 2
3 <- 4
5 <- 6
nothing <- 7
nothing <- 8
nothing <- 9
mappings for count
direct:
2 -> nothing
4 -> nothing
6 -> nothing
7 -> nothing
8 -> nothing
9 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,31 @@
LineBreakpoint created at PlusElement.kt:5
Run Java
Connected to the target VM
PlusElement.kt:5
sequenceOf(1, 2)
.plusElement(10)
.count()
plusElement
before: 1,3
after: 2,4,5
count
before: 2,4,5
after: nothing
mappings for plusElement
direct:
1 -> 2
3 -> 4
reverse:
1 <- 2
3 <- 4
nothing <- 5
mappings for count
direct:
2 -> nothing
4 -> nothing
5 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,33 @@
LineBreakpoint created at PlusSequence.kt:5
Run Java
Connected to the target VM
PlusSequence.kt:5
sequenceOf(10, 20)
.plus(sequenceOf(30, 40))
.count()
plus
before: 1,3
after: 2,4,5,6
count
before: 2,4,5,6
after: nothing
mappings for plus
direct:
1 -> 2
3 -> 4
reverse:
1 <- 2
3 <- 4
nothing <- 5
nothing <- 6
mappings for count
direct:
2 -> nothing
4 -> nothing
5 -> nothing
6 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,31 @@
LineBreakpoint created at PlusSingle.kt:5
Run Java
Connected to the target VM
PlusSingle.kt:5
sequenceOf(10, 20)
.plus(30)
.count()
plus
before: 1,3
after: 2,4,5
count
before: 2,4,5
after: nothing
mappings for plus
direct:
1 -> 2
3 -> 4
reverse:
1 <- 2
3 <- 4
nothing <- 5
mappings for count
direct:
2 -> nothing
4 -> nothing
5 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.sequence.distinct
fun main(args: Array<String>) {
//Breakpoint!
listOf(1, 2, 3, 2, 1, 3, 4, 2).asSequence().distinct().count()
}
@@ -0,0 +1,6 @@
package streams.sequence.distinct
fun main(args: Array<String>) {
//Breakpoint!
listOf(3, 4, 234, 34, 54, 23, 4, 23, 543, 5, 46).asSequence().distinctBy { it % 10 }.toList()
}
@@ -0,0 +1,8 @@
package streams.sequence.distinct
fun main(args: Array<String>) {
//Breakpoint!
val seq = (22..25).map { it * it }.asSequence()
.distinctBy { it.toString().first() }
.count()
}
@@ -0,0 +1,6 @@
package streams.sequence.distinct
fun main(args: Array<String>) {
//Breakpoint!
sequenceOf(null, 1, 2, 3, null).distinctBy { it == null }.count()
}
@@ -0,0 +1,6 @@
package streams.sequence.distinct
fun main(args: Array<String>) {
//Breakpoint!
sequenceOf(1, 2, 3, 4, 5).distinctBy { if (it % 2 == 0) null else it }.count()
}
@@ -0,0 +1,6 @@
package streams.sequence.distinct
fun main(args: Array<String>) {
//Breakpoint!
sequenceOf(1, 2, null, null, 3, 1).distinctBy { if (it == null) 2 else if (it == 3) null else it }.count()
}
@@ -0,0 +1,7 @@
package streams.sequence.distinct
fun main(args: Array<String>) {
fun str(chr: Char): String = String(charArrayOf(chr))
//Breakpoint!
listOf(str('a'), str('b'), str('a'), str('c'), str('b')).asSequence().distinct().count()
}
@@ -0,0 +1,39 @@
LineBreakpoint created at Distinct.kt:5
Run Java
Connected to the target VM
Distinct.kt:5
listOf(1, 2, 3, 2, 1, 3, 4, 2).asSequence()
.distinct()
.count()
distinct
before: 1,3,5,7,8,9,10,12
after: 2,4,6,11
count
before: 2,4,6,11
after: nothing
mappings for distinct
direct:
1 -> 2
3 -> 4
5 -> 6
7 -> 4
8 -> 2
9 -> 6
10 -> 11
12 -> 4
reverse:
1,8 <- 2
3,7,12 <- 4
5,9 <- 6
10 <- 11
mappings for count
direct:
2 -> nothing
4 -> nothing
6 -> nothing
11 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,42 @@
LineBreakpoint created at DistinctBy.kt:5
Run Java
Connected to the target VM
DistinctBy.kt:5
listOf(3, 4, 234, 34, 54, 23, 4, 23, 543, 5, 46).asSequence()
.distinctBy({ it % 10 })
.toList()
distinctBy
before: 1,3,5,6,7,8,9,10,11,12,14
after: 2,4,13,15
toList
before: 2,4,13,15
after: nothing
mappings for distinctBy
direct:
1 -> 2
3 -> 4
5 -> 4
6 -> 4
7 -> 4
8 -> 2
9 -> 4
10 -> 2
11 -> 2
12 -> 13
14 -> 15
reverse:
1,8,10,11 <- 2
3,5,6,7,9 <- 4
12 <- 13
14 <- 15
mappings for toList
direct:
2 -> nothing
4 -> nothing
13 -> nothing
15 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,33 @@
LineBreakpoint created at DistinctByBigPrimitives.kt:5
Run Java
Connected to the target VM
DistinctByBigPrimitives.kt:5
(22..25).map { it * it }.asSequence()
.distinctBy({ it.toString().first() })
.count()
distinctBy
before: 1,3,5,6
after: 2,4,7
count
before: 2,4,7
after: nothing
mappings for distinctBy
direct:
1 -> 2
3 -> 4
5 -> 4
6 -> 7
reverse:
1 <- 2
3,5 <- 4
6 <- 7
mappings for count
direct:
2 -> nothing
4 -> nothing
7 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,32 @@
LineBreakpoint created at DistinctByNullableElement.kt:5
Run Java
Connected to the target VM
DistinctByNullableElement.kt:5
sequenceOf(null, 1, 2, 3, null)
.distinctBy({ it == null })
.count()
distinctBy
before: 1,3,5,6,7
after: 2,4
count
before: 2,4
after: nothing
mappings for distinctBy
direct:
1 -> 2
3 -> 4
5 -> 4
6 -> 4
7 -> 2
reverse:
1,7 <- 2
3,5,6 <- 4
mappings for count
direct:
2 -> nothing
4 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,36 @@
LineBreakpoint created at DistinctByNullableKey.kt:5
Run Java
Connected to the target VM
DistinctByNullableKey.kt:5
sequenceOf(1, 2, 3, 4, 5)
.distinctBy({ if (it % 2 == 0) null else it })
.count()
distinctBy
before: 1,3,5,7,8
after: 2,4,6,9
count
before: 2,4,6,9
after: nothing
mappings for distinctBy
direct:
1 -> 2
3 -> 4
5 -> 6
7 -> 4
8 -> 9
reverse:
1 <- 2
3,7 <- 4
5 <- 6
8 <- 9
mappings for count
direct:
2 -> nothing
4 -> nothing
6 -> nothing
9 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,35 @@
LineBreakpoint created at DistinctByNullableKeyAndElement.kt:5
Run Java
Connected to the target VM
DistinctByNullableKeyAndElement.kt:5
sequenceOf(1, 2, null, null, 3, 1)
.distinctBy({ if (it == null) 2 else if (it == 3) null else it })
.count()
distinctBy
before: 1,3,5,6,7,9
after: 2,4,8
count
before: 2,4,8
after: nothing
mappings for distinctBy
direct:
1 -> 2
3 -> 4
5 -> 4
6 -> 4
7 -> 8
9 -> 2
reverse:
1,9 <- 2
3,5,6 <- 4
7 <- 8
mappings for count
direct:
2 -> nothing
4 -> nothing
8 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,34 @@
LineBreakpoint created at DistinctObjects.kt:6
Run Java
Connected to the target VM
DistinctObjects.kt:6
listOf(str('a'), str('b'), str('a'), str('c'), str('b')).asSequence()
.distinct()
.count()
distinct
before: 1,3,5,6,8
after: 2,4,7
count
before: 2,4,7
after: nothing
mappings for distinct
direct:
1 -> 2
3 -> 4
5 -> 2
6 -> 7
8 -> 4
reverse:
1,5 <- 2
3,8 <- 4
6 <- 7
mappings for count
direct:
2 -> nothing
4 -> nothing
7 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
listOf(1, 2, 3).asSequence().drop(2).count()
}
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
listOf("abs", "bcs", "abt").asSequence().dropWhile { it.startsWith('a') }.forEach {}
}
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
listOf(1,2,3).asSequence().filter { it == 2 }.count()
}
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
intArrayOf(1, 2, 3).asSequence().filterIndexed({ index, _ -> index % 2 == 0 }).count()
}
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
arrayOf(true, "12", false).asSequence().filterIsInstance<Boolean>().forEach {}
}
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
booleanArrayOf(true, false, false).asSequence().filterNot { it }.lastIndexOf(true)
}
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
byteArrayOf(1, 2, 3, 2).asSequence().minus(arrayOf(2.toByte())).count()
}
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
byteArrayOf(1, 2, 3, 2).asSequence().minusElement(2.toByte()).count()
}
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
charArrayOf('a', 'b', 'c').asSequence().take(2).count()
}
@@ -0,0 +1,6 @@
package streams.sequence.filter
fun main(args: Array<String>) {
//Breakpoint!
doubleArrayOf(1.0, 3.0, 5.0).asSequence().takeWhile { it < 2 }.forEach {}
}
@@ -0,0 +1,28 @@
LineBreakpoint created at Drop.kt:5
Run Java
Connected to the target VM
Drop.kt:5
listOf(1, 2, 3).asSequence()
.drop(2)
.count()
drop
before: 1,2,3
after: 4
count
before: 4
after: nothing
mappings for drop
direct:
1 -> nothing
2 -> nothing
3 -> 4
reverse:
3 <- 4
mappings for count
direct:
4 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,30 @@
LineBreakpoint created at DropWhile.kt:5
Run Java
Connected to the target VM
DropWhile.kt:5
listOf("abs", "bcs", "abt").asSequence()
.dropWhile({ it.startsWith('a') })
.forEach({})
dropWhile
before: 1,2,4
after: 3,5
forEach
before: 3,5
after: nothing
mappings for dropWhile
direct:
1 -> nothing
2 -> 3
4 -> 5
reverse:
2 <- 3
4 <- 5
mappings for forEach
direct:
3 -> nothing
5 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,28 @@
LineBreakpoint created at Filter.kt:5
Run Java
Connected to the target VM
Filter.kt:5
listOf(1,2,3).asSequence()
.filter({ it == 2 })
.count()
filter
before: 1,2,4
after: 3
count
before: 3
after: nothing
mappings for filter
direct:
1 -> nothing
2 -> 3
4 -> nothing
reverse:
2 <- 3
mappings for count
direct:
3 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,30 @@
LineBreakpoint created at FilterIndexed.kt:5
Run Java
Connected to the target VM
FilterIndexed.kt:5
intArrayOf(1, 2, 3).asSequence()
.filterIndexed({ index, _ -> index % 2 == 0 })
.count()
filterIndexed
before: 1,3,4
after: 2,5
count
before: 2,5
after: nothing
mappings for filterIndexed
direct:
1 -> 2
3 -> nothing
4 -> 5
reverse:
1 <- 2
4 <- 5
mappings for count
direct:
2 -> nothing
5 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,30 @@
LineBreakpoint created at FilterIsInstance.kt:5
Run Java
Connected to the target VM
FilterIsInstance.kt:5
arrayOf(true, "12", false).asSequence()
.filterIsInstance()
.forEach({})
filterIsInstance
before: 1,3,4
after: 2,5
forEach
before: 2,5
after: nothing
mappings for filterIsInstance
direct:
1 -> 2
3 -> nothing
4 -> 5
reverse:
1 <- 2
4 <- 5
mappings for forEach
direct:
2 -> nothing
5 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,30 @@
LineBreakpoint created at FilterNot.kt:5
Run Java
Connected to the target VM
FilterNot.kt:5
booleanArrayOf(true, false, false).asSequence()
.filterNot({ it })
.lastIndexOf(true)
filterNot
before: 1,2,4
after: 3,5
lastIndexOf
before: 3,5
after: nothing
mappings for filterNot
direct:
1 -> nothing
2 -> 3
4 -> 5
reverse:
2 <- 3
4 <- 5
mappings for lastIndexOf
direct:
3 -> nothing
5 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,31 @@
LineBreakpoint created at Minus.kt:5
Run Java
Connected to the target VM
Minus.kt:5
byteArrayOf(1, 2, 3, 2).asSequence()
.minus(arrayOf(2.toByte()))
.count()
minus
before: 1,3,4,6
after: 2,5
count
before: 2,5
after: nothing
mappings for minus
direct:
1 -> 2
3 -> nothing
4 -> 5
6 -> nothing
reverse:
1 <- 2
4 <- 5
mappings for count
direct:
2 -> nothing
5 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,33 @@
LineBreakpoint created at MinusElement.kt:5
Run Java
Connected to the target VM
MinusElement.kt:5
byteArrayOf(1, 2, 3, 2).asSequence()
.minusElement(2.toByte())
.count()
minusElement
before: 1,3,4,6
after: 2,5,7
count
before: 2,5,7
after: nothing
mappings for minusElement
direct:
1 -> 2
3 -> nothing
4 -> 5
6 -> 7
reverse:
1 <- 2
4 <- 5
6 <- 7
mappings for count
direct:
2 -> nothing
5 -> nothing
7 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,29 @@
LineBreakpoint created at Take.kt:5
Run Java
Connected to the target VM
Take.kt:5
charArrayOf('a', 'b', 'c').asSequence()
.take(2)
.count()
take
before: 1,3
after: 2,4
count
before: 2,4
after: nothing
mappings for take
direct:
1 -> 2
3 -> 4
reverse:
1 <- 2
3 <- 4
mappings for count
direct:
2 -> nothing
4 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,27 @@
LineBreakpoint created at TakeWhile.kt:5
Run Java
Connected to the target VM
TakeWhile.kt:5
doubleArrayOf(1.0, 3.0, 5.0).asSequence()
.takeWhile({ it < 2 })
.forEach({})
takeWhile
before: 1,3
after: 2
forEach
before: 2
after: nothing
mappings for takeWhile
direct:
1 -> 2
3 -> nothing
reverse:
1 <- 2
mappings for forEach
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.sequence.flatMap
fun main(args: Array<String>) {
//Breakpoint!
listOf(1, 0, 2).asSequence().flatMap { (0 until it).asSequence() }.count()
}
@@ -0,0 +1,6 @@
package streams.sequence.flatMap
fun main(args: Array<String>) {
//Breakpoint!
listOf(listOf(1,2,3), listOf(), listOf(4,5,6)).asSequence().flatten().toList()
}
@@ -0,0 +1,32 @@
LineBreakpoint created at FlatMap.kt:5
Run Java
Connected to the target VM
FlatMap.kt:5
listOf(1, 0, 2).asSequence()
.flatMap({ (0 until it).asSequence() })
.count()
flatMap
before: 1,3,4
after: 2,5,6
count
before: 2,5,6
after: nothing
mappings for flatMap
direct:
1 -> 2
3 -> nothing
4 -> 5,6
reverse:
1 <- 2
4 <- 5
4 <- 6
mappings for count
direct:
2 -> nothing
5 -> nothing
6 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,38 @@
LineBreakpoint created at Flatten.kt:5
Run Java
Connected to the target VM
Flatten.kt:5
listOf(listOf(1,2,3), listOf(), listOf(4,5,6)).asSequence()
.flatten()
.toList()
flatten
before: 1,5,6
after: 2,3,4,7,8,9
toList
before: 2,3,4,7,8,9
after: nothing
mappings for flatten
direct:
1 -> 2,3,4
5 -> nothing
6 -> 7,8,9
reverse:
1 <- 2
1 <- 3
1 <- 4
6 <- 7
6 <- 8
6 <- 9
mappings for toList
direct:
2 -> nothing
3 -> nothing
4 -> nothing
7 -> nothing
8 -> nothing
9 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package streams.sequence.map
fun main(args: Array<String>) {
//Breakpoint!
doubleArrayOf(1.0, 2.0).asSequence().map { it * it }.contains(3.0)
}
@@ -0,0 +1,6 @@
package streams.sequence.map
fun main(args: Array<String>) {
//Breakpoint!
intArrayOf(1, 2, 3, 4).asSequence().mapIndexed { ix, _ -> ix }.count()
}
@@ -0,0 +1,6 @@
package streams.sequence.map
fun main(args: Array<String>) {
//Breakpoint!
val lst = listOf(1, 2, null, 3).asSequence().mapNotNull { if (it != null && it % 2 == 1) it else null }.toList()
}
@@ -0,0 +1,6 @@
package streams.sequence.map
fun main(args: Array<String>) {
//Breakpoint!
intArrayOf(1, 2, 3).asSequence().withIndex().forEach {}
}
@@ -0,0 +1,29 @@
LineBreakpoint created at Map.kt:5
Run Java
Connected to the target VM
Map.kt:5
doubleArrayOf(1.0, 2.0).asSequence()
.map({ it * it })
.contains(3.0)
map
before: 1,3
after: 2,4
contains
before: 2,4
after: nothing
mappings for map
direct:
1 -> 2
3 -> 4
reverse:
1 <- 2
3 <- 4
mappings for contains
direct:
2 -> nothing
4 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,35 @@
LineBreakpoint created at MapIndexed.kt:5
Run Java
Connected to the target VM
MapIndexed.kt:5
intArrayOf(1, 2, 3, 4).asSequence()
.mapIndexed({ ix, _ -> ix })
.count()
mapIndexed
before: 1,3,5,7
after: 2,4,6,8
count
before: 2,4,6,8
after: nothing
mappings for mapIndexed
direct:
1 -> 2
3 -> 4
5 -> 6
7 -> 8
reverse:
1 <- 2
3 <- 4
5 <- 6
7 <- 8
mappings for count
direct:
2 -> nothing
4 -> nothing
6 -> nothing
8 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,31 @@
LineBreakpoint created at MapNotNull.kt:5
Run Java
Connected to the target VM
MapNotNull.kt:5
listOf(1, 2, null, 3).asSequence()
.mapNotNull({ if (it != null && it % 2 == 1) it else null })
.toList()
mapNotNull
before: 1,3,4,5
after: 2,6
toList
before: 2,6
after: nothing
mappings for mapNotNull
direct:
1 -> 2
3 -> nothing
4 -> nothing
5 -> 6
reverse:
1 <- 2
5 <- 6
mappings for toList
direct:
2 -> nothing
6 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,32 @@
LineBreakpoint created at WithIndex.kt:5
Run Java
Connected to the target VM
WithIndex.kt:5
intArrayOf(1, 2, 3).asSequence()
.withIndex()
.forEach({})
withIndex
before: 1,3,5
after: 2,4,6
forEach
before: 2,4,6
after: nothing
mappings for withIndex
direct:
1 -> 2
3 -> 4
5 -> 6
reverse:
1 <- 2
3 <- 4
5 <- 6
mappings for forEach
direct:
2 -> nothing
4 -> nothing
6 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0

Some files were not shown because too many files have changed in this diff Show More