benleggiero
07/27/2017, 12:03 PMross_a
07/27/2017, 3:18 PMpoohbar
07/27/2017, 4:54 PMval header = request.getHeader("xyz")
I see that header
has an inferred type of String!
... is this okay? what happens if getHeader
returns null
?kevin.cianfarini
07/27/2017, 4:55 PMjcarvalho
07/27/2017, 9:58 PMagomez
07/27/2017, 10:00 PMkevinherron
07/27/2017, 10:00 PMPaul Woitaschek
07/28/2017, 6:02 AMrogeralsing
07/28/2017, 10:35 AMkarelpeeters
07/28/2017, 5:51 PMthis
refer to inside that method?karelpeeters
07/28/2017, 6:34 PMMutableList
, so it should just work the same way.diesieben07
07/28/2017, 7:15 PMtipsy
07/28/2017, 7:19 PMfun uploadedFile(fileName: String): UploadedFile? {
val uploadedFiles = uploadedFiles(fileName)
return if (uploadedFiles.isNotEmpty()) uploadedFiles[0] else null;
}
tipsy
07/28/2017, 7:39 PMcomponent1()
, component2()
, etc supposed to be visible when using data-classes from java?diesieben07
07/28/2017, 10:40 PMMap
implementation would have to implement filter
.cdurham
07/28/2017, 10:52 PMfilterTo
?crypto
07/29/2017, 7:27 AMrogeralsing
07/29/2017, 9:31 AMferoz_baig
07/29/2017, 1:30 PMsupaham
07/29/2017, 1:51 PMval componentArgs: List<Pair<Int, Component>> = args
.mapIndexed { idx, it -> idx to it }
.filter { it.second is Component }
.map { it.first to it.second as Component }
Is there a neater way of writing this? I want to store index to args value only if it is Componentredrield
07/30/2017, 5:03 AMbrucelee
07/30/2017, 12:22 PMpike
07/31/2017, 12:18 AMgregopet
07/31/2017, 8:26 AMmaciekjanusz
07/31/2017, 11:32 AMhavok
07/31/2017, 1:40 PMhavok
07/31/2017, 3:17 PMjoelpedraza
07/31/2017, 4:29 PMskennedy
07/31/2017, 7:52 PMsrc/main/jakewharton
orangy
07/31/2017, 8:02 PMsrc
, test
, etc. No main, no java or kotlinorangy
07/31/2017, 8:02 PMsrc
, test
, etc. No main, no java or kotlinRuckus
07/31/2017, 8:30 PMresources
as a top level directory as well?michaelsims
07/31/2017, 8:38 PMelect
07/31/2017, 9:10 PMEugen Martynov
08/01/2017, 6:18 AMorangy
08/01/2017, 7:54 AMEugen Martynov
08/01/2017, 8:09 AMsrc
voddan
08/01/2017, 10:19 AMmain/
, no gain. Yay!