Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
aa5987fd3dbfa6d7896d481b336c9f49e48b9179
/
.
/
plugins
/
scripting
/
scripting-compiler
/
testData
/
compiler
/
kt42530.kts
blob: da808de0e6409d64b12794e318ae9c45384168ff [
file
] [
log
] [
blame
]
fun
Int
.
isOdd
()
=
(
this
%
2
)
==
1
val list
:
List
<
Pair
<
Int
,
String
>>
=
listOf
(
1
to
"a"
,
2
to
"b"
)
val
(
odds
,
evens
)
=
list
.
partition
{
(
i
,
_
)
->
i
.
isOdd
()
}
println
(
odds
)
odds