kirillrakhman
05/19/2017, 9:39 AMkirillrakhman
05/19/2017, 9:42 AMmadusudanan
05/19/2017, 10:03 AMmadusudanan
05/19/2017, 10:07 AMmaciekjanusz
05/19/2017, 10:15 AMlateinit var a: String
makes it possible to have non-nullable type and yet allow for this edge case of it being null until properly assigned value AFTER constructionDavid W
05/19/2017, 10:26 AMapply
for when you are modifying properties of a class as you initialize it, eg:
val obj = ObjWithoutConstructor().apply {
somePropOfObj = "value1"
}
bamdmux
05/19/2017, 10:38 AMmyanmarking
05/19/2017, 2:36 PMomarkj
05/19/2017, 3:22 PMequals
? Wondering if it that’s the reason matching on Pair elements isn’t possible.elizarov
05/19/2017, 4:21 PMeric239
05/19/2017, 4:43 PMBase
which doesn’t implement anything, and I want to create class Derived
which extends Base
and delegates to an instance of Base
. I know I can use regular java dynamic proxies; wondering if there’s a “kotlin” way.cedric
05/19/2017, 4:50 PMvaskir
05/19/2017, 5:35 PMivykp
05/19/2017, 9:33 PMandyg
05/20/2017, 1:21 AM"The %s %s fox jumped over the %s dog".format(<http://Locale.US|Locale.US>, adjectives)
adjectives
is a MutableList<String>
with 3 entries
I keep getting MissingFormatArgumentException
. Have tried casting to TypedArray
, Array<Any>
, and more. Thank you!redrield
05/20/2017, 1:23 AMpakoito
05/20/2017, 1:41 AMfun <G : Applicative<*>, A, B> traverse(fa: HK<F, A>): (f: (A) -> HK<G, B>) -> HK<G, HK<F, B>>
is this valid syntax? that f name looks out of place, yet it compilesDibya
05/20/2017, 2:43 AMvoddan
05/20/2017, 7:41 AMravikumar
05/20/2017, 11:34 AMDalinar
05/20/2017, 12:32 PM20
it seems to work, but a number like 100
will also cause a large negative value )
println(fibonacci(50).last())
fun fibonacci() = generateSequence(Pair(0, 1), { Pair(it.second, it.first + it.second) }).map { it.first }
fun fibonacci(n: Int): Sequence<Int> = fibonacci().take(n)
antoin_m
05/20/2017, 1:05 PMError:Kotlin: Unsupported plugin option: org.jetbrains.kotlin.allopen:preset=spring
Everything is fine when I build to a jar though.
Any idea? 😕argoneus
05/20/2017, 5:12 PMvaskir
05/20/2017, 8:08 PMmg6maciej
05/21/2017, 9:49 AMargoneus
05/21/2017, 10:03 AMval srl_view = view?.findViewById(R.id.refresh_servers) ?: return
val srl = srl_view as SwipeRefreshLayout
bod
05/21/2017, 1:37 PMapply plugin: 'kotlin-kapt'
or is it an experimental thing? I mean you can use kapt
dependencies even if you don’t do it, but it works differently it seems - which is a bit confusing. Any clarification on this would be much appreciated 🙂deviant
05/21/2017, 2:02 PMprovideDelegate
operator? It's just not being called when i'm trying to instantiate delegate via helper function, such
fun <T> observableField(default: T? = null): ReadWriteProperty<Observable, T?> = ObservableFieldProperty(default)
the operator works ok though when i instantiate delegated property directly with class constructormipster
05/21/2017, 4:38 PMredrield
05/21/2017, 5:05 PMredrield
05/21/2017, 5:05 PMmg6maciej
05/21/2017, 5:10 PMredrield
05/21/2017, 5:16 PM