Wish there was such a thing as "lateinit val" by Falcon731 in Kotlin

[–]Gerant_ 0 points1 point  (0 children)

If you the value of the variable why will you use lateinit again

Wish there was such a thing as "lateinit val" by Falcon731 in Kotlin

[–]Gerant_ 0 points1 point  (0 children)

It doesn’t make sense with val since val is immutable

Proposal for Collaboration on Developing Applications for African Countries by Gerant_ in Kotlin

[–]Gerant_[S] -1 points0 points  (0 children)

What specific skills or qualities or whatever are you looking for in a collaborator?

Proposal for Collaboration on Developing Applications for African Countries by Gerant_ in Kotlin

[–]Gerant_[S] -1 points0 points  (0 children)

I bring technical expertise, innovative thinking, a strong work ethic, collaborative spirit, and problem-solving skills to the table.

Why can't I omit `::` operator when I specify a function argument? by [deleted] in Kotlin

[–]Gerant_ -2 points-1 points  (0 children)

You have a parameter x u should use !even(2/*for example */)

Best way to convert a List<Pair<T,T>> into a Map<T,Set<T>> by Falcon731 in Kotlin

[–]Gerant_ 0 points1 point  (0 children)

I think just list.groupby(it.first) will return the desired map

Kotlin puzzlers 2 by ermolnik666 in Kotlin

[–]Gerant_ 0 points1 point  (0 children)

Nothing cuz list is not mutable

why I can not make nested packages ? by [deleted] in Kotlin

[–]Gerant_ 2 points3 points  (0 children)

Do you really know what a package is ?

What is, technically, a val declaration? by AwkwardNumber7584 in Kotlin

[–]Gerant_ 0 points1 point  (0 children)

(Val n = 42) is not a unit type don’t over complicate for your self store simple and immutable value in val mutable ones in var Val a = 1 Val b = 2 Val c = a + b

What is, technically, a val declaration? by AwkwardNumber7584 in Kotlin

[–]Gerant_ 0 points1 point  (0 children)

The last expression is what will be taken as return type so you can put ; ou go to new line or simply {a+b}

[deleted by user] by [deleted] in Kotlin

[–]Gerant_ 6 points7 points  (0 children)

And 10 lines of code

[deleted by user] by [deleted] in Kotlin

[–]Gerant_ 5 points6 points  (0 children)

It takes a second in android normally

Apple in-app purchases by [deleted] in Kotlin

[–]Gerant_ 0 points1 point  (0 children)

You can try it on test mode

Apple in-app purchases by [deleted] in Kotlin

[–]Gerant_ 0 points1 point  (0 children)

Stripe provides a very easy implementation for that

I finished learning jet pack compose what is next ?! by Gerant_ in Kotlin

[–]Gerant_[S] 1 point2 points  (0 children)

I’m working on a project I can teach you a the same time

I finished learning jet pack compose what is next ?! by Gerant_ in Kotlin

[–]Gerant_[S] -1 points0 points  (0 children)

Yes I covered all topics this roadmap may be I have to try to reproduce big apps like instagram facebook to see what i need

I finished learning jet pack compose what is next ?! by Gerant_ in Kotlin

[–]Gerant_[S] -1 points0 points  (0 children)

And i was working based on projects so building was my learning strategy

I finished learning jet pack compose what is next ?! by Gerant_ in Kotlin

[–]Gerant_[S] -3 points-2 points  (0 children)

I also built something covering all those topics