kirillrakhman
08/11/2016, 3:08 PMkirillrakhman
08/11/2016, 3:08 PMmikehearn
08/11/2016, 3:09 PMmikehearn
08/11/2016, 3:09 PMmikehearn
08/11/2016, 3:09 PMbodo
08/11/2016, 3:26 PMyole
08/11/2016, 3:46 PMString.format
ilya.gorbunov
08/11/2016, 3:57 PMbuildString
you're arguing about?mikehearn
08/11/2016, 4:09 PMilya.gorbunov
08/11/2016, 4:10 PMbuildString
overload with the initialCapacity parameter and not that overload without it?ilya.gorbunov
08/11/2016, 5:05 PMilya.gorbunov
08/11/2016, 5:11 PMHashSet.filter(): HashSet
or Queue.filter(): Queue
. We hadn't found enough reasons to duplicate all available collection operations for every possible Collection
inheritor just to preserve type of the returned collection.sreich
08/11/2016, 6:21 PMAndreas Sinz
08/12/2016, 7:45 AMinline fun <reified T: Iterable<R>, R> T.filter(predicate: (R) -> Boolean): T {
? filter
could easily be replaced by a generic method, not sure about map
cypher121
08/12/2016, 8:04 AMmikehearn
08/12/2016, 8:34 AMmikehearn
08/12/2016, 8:34 AMmikehearn
08/12/2016, 8:34 AMkirillrakhman
08/12/2016, 9:13 AMSet
?cedric
08/12/2016, 9:48 AM() -> T
dimsuz
08/14/2016, 11:42 AMlist.flatMap()
processes only a first element of this list (checked in debugger, plus logging). I just replaced flatMap
with for..in
+ manual accumulation and it started to work.cbruegg
08/14/2016, 12:25 PMdimsuz
08/14/2016, 12:32 PMvoddan
08/14/2016, 4:25 PMdimsuz
08/14/2016, 4:59 PMcy
08/15/2016, 11:58 AMdimsuz
08/15/2016, 12:07 PMhastebrot
08/16/2016, 2:45 PMflatMap
sounds strange, indeed. Does the transform
function argument in flatMap()
has side-effects, or does the Iterable
or Sequence
where it is called on make any special things?dimsuz
08/16/2016, 2:48 PMreturn
stuff out of java-habit though I'm not sure I would. I'll have to check in later. I was in the rush to get things done, so refactored that code to a simple for..in
voddan
08/16/2016, 5:49 PM