raulraja
05/24/2017, 7:34 PMbreandan
06/13/2017, 10:17 AMSequence
, but why isn't the operand of Sequence.plus(...)
evaluated lazily by default? Are there any plans to provide this behavior? Is there a way to use the stdlib functions to get a truly lazy implementation for concatenation of Iterables? @h0tk3yDalinar
06/25/2017, 8:46 PManyMatch
was a typo, I meant all { }
and allMatch { }
@kevinmost @arocniesraulraja
10/02/2017, 3:39 PMsimon.vergauwen
10/02/2017, 6:34 PMInt.Companion.empty()
and auto creation of Companion
makes more sensenoone
10/25/2017, 12:11 PMdh44t
12/22/2017, 9:47 AMtschuchort
01/22/2018, 11:14 PMraulraja
01/25/2018, 1:05 PMyaakov
01/27/2018, 7:14 PMraulraja
02/15/2018, 12:09 PMTry
for: https://twitter.com/arrow_kt/status/964099546103123969gildor
02/21/2018, 10:06 AMfold
, I would like to create 0 object instead of 2raulraja
02/21/2018, 10:07 AMpakoito
02/21/2018, 10:09 AMgildor
02/21/2018, 10:34 AMgregd
02/26/2018, 7:23 PMmap
over it? I know I could use Kotlin’s let
, but maybe there’s a proper FP way of doing this?raulraja
02/26/2018, 9:59 PMF
you can create entire pure programs that entirely independent of the runtime data types that backs their declaration.tschuchort
03/06/2018, 4:24 PMmarcinmoskala
04/14/2018, 4:19 PMColor
, but it is not such a common case + probably in the future we will be able to use extension interfaces.Robert Menke
04/17/2018, 2:27 AMkenkyee
07/10/2018, 1:11 PMNiels Renard
07/12/2018, 6:57 AMNiels Renard
07/12/2018, 7:02 AMgildor
07/28/2018, 6:23 PMgildor
07/28/2018, 6:34 PMossama
07/30/2018, 9:36 AMMarc Reichelt
08/10/2018, 8:30 AMnewDogsMap[it.key]!!
specifically…gregd
12/02/2018, 10:53 AMreduce
function?
I wan’t to reduce an infinite sequence of numbers, but only until some condition is met (based on the result of the reduce).
I know Clojure has this neat reduced
function for this. In Haskell we could use scan
. But do we have anything similar in Kotlin’s stdlib?pavel
12/20/2018, 11:36 PMfun testFun(nums: IntArray) =
nums.fold(Int.MIN_VALUE to Int.MAX_VALUE) { (largest, smallest), next ->
max(largest, next) to min(smallest, next)
}.run { first - second }
pakoito
12/22/2018, 12:59 AMpakoito
12/22/2018, 12:59 AMShawn
12/22/2018, 1:03 AM