bissell
06/16/2018, 11:50 PMAregev2
06/19/2018, 5:41 AMAregev2
06/19/2018, 5:43 AMLeoColman
06/19/2018, 7:14 PMAregev2
06/20/2018, 9:35 AMenleur
07/01/2018, 10:20 AMlittlelightcz
07/06/2018, 9:38 AMrrva
07/08/2018, 8:02 AM[a, b, c, d]
what’s a simple and idiomatic way to transform this into a stream of pairs [[a, b], [c, d]]
pniederw
07/08/2018, 8:43 PMkotlin-stdlib
and kotlin-stdlib-common
? both are on my class path, which results in duplicate hits in searches.elect
07/10/2018, 9:49 AMref(value)
instead ref.set(value)
LeoColman
07/12/2018, 1:33 AMilya.gorbunov
07/12/2018, 3:15 AMRange
to ClosedRange
and its end
property to endInclusive
and dropped FloatRange
and DoubleRange
to make it possible to introduce open-ended ranges without breaking changes later.thomasnield
07/13/2018, 12:39 AMList<Any>
due to lack of common Range
interface.thomasnield
07/14/2018, 12:48 AMkarelpeeters
07/28/2018, 2:37 PMAregev2
07/29/2018, 9:03 AMAregev2
07/29/2018, 11:21 AMkarelpeeters
07/30/2018, 9:41 AMasList
returns an ArrayList
backed by the given array.vmichalak
08/07/2018, 1:04 PMDaniel Cordell
08/08/2018, 11:26 AM/dev/null
or NUL
? Something like python's os.devnull.shusek
08/08/2018, 12:10 PMmiha-x64
08/10/2018, 1:07 PMLinkedList
can't be more efficient under any circumstancesAregev2
08/10/2018, 1:31 PMString
to its binary form (i.e 0s and 1s)
fun main(args: Array<String>) {
println("foo".binaryRepresentation())
}
fun String.binaryRepresentation(): String {
val bytes = toByteArray()
val binary = StringBuilder()
for (b in bytes) {
var save = b.toInt()
for (i in 0 until Byte.SIZE_BITS) {
binary.append(if (save and 128 == 0) 0 else 1)
save = save shl 1
}
binary.append(' ')
}
return binary.toString()
}
I do not know if there is something in the stdlib that can do it though...jw
08/17/2018, 3:32 PMintersect
. i think it might be too specialized to warrant stdlib inclusion though.marcinmoskala
08/19/2018, 9:49 AMMap.merge
function in Kotlin:
https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#merge-K-V-java.util.function.BiFunction-
I can easily add it using extension function. PR?ilya.gorbunov
09/05/2018, 11:41 AMbuildSequence
and buildIterator
functions. Please share your thoughts regarding the names proposed in the attached post, especially if you find something confusing about any of them.maxmello
09/11/2018, 3:31 PMjw
09/12/2018, 6:05 PMDominaezzz
09/12/2018, 7:40 PMCloseable
and/or AutoCloseable
interface be added to the standard library?anidotnet
09/18/2018, 9:20 AManidotnet
09/18/2018, 9:20 AMDominaezzz
09/18/2018, 9:29 AMvoddan
09/18/2018, 1:07 PMStandard file api will come eventuallyI would not be so sure. Different platforms handle files very differently
Dominaezzz
09/18/2018, 1:27 PMlouiscad
09/18/2018, 4:46 PM<http://kotlin.io|kotlin.io>
package as of Kotlin stdlib 1.2 for JDK