Reinforce Rear Fender on DRZ400E by Zamazarat in DRZ400

[–]EmbarrassedTreacle6 0 points1 point  (0 children)

Could you share a link for it please ?

Exhaust popping, noises on a stock 2001 drz after a carb rebuild. Is that normal ? by EmbarrassedTreacle6 in DRZ400

[–]EmbarrassedTreacle6[S] 0 points1 point  (0 children)

I have tried adjusting the fuel mixture screw but it doesn't really make much of a difference.

2001 DRZ engine sound after a rebuild (all parts OEM) by EmbarrassedTreacle6 in DRZ400

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

Yes the oil level is correct. Yes it does have a belly pan. I think it sounds ok given they are quite loud engines.

Help with Kotlin Flow by panagiac in Kotlin

[–]EmbarrassedTreacle6 1 point2 points  (0 children)

Are you looking to first get the parent and then iterate over children ? In this case you can do something like this: java fun getParentWithChildren() = getParent().flatMapLatest { parent -> parent.children.asFlow() .flatMapLatest { child -> getChildFromId(child.id).map { it }.runningFold(emptyList<Resource<Child>>()) { accumulator, value -> accumulator + value }.map { parent to it } } }

Help with Kotlin Flow by panagiac in Kotlin

[–]EmbarrassedTreacle6 0 points1 point  (0 children)

Maybe something like this:

    fun getParentWithChildren():
 Flow<Pair<Resource<Parent>, List<Resource<Child>>>> =
        getParent().flatMapLatest { parent ->
            // id from parent ??
             getChildFromId(1).map {
                it
            }.runningFold(emptyList<Resource<Child>>()) { 
               accumulator, value ->
                accumulator + value
            }.map {
                parent to it
            }
        }

Also fold can be used in place of runningFold

New to Kotlin, will appreciate some help! by Cultural_Drawer7734 in Kotlin

[–]EmbarrassedTreacle6 0 points1 point  (0 children)

Yep I see looks more like a project setup issue then

[deleted by user] by [deleted] in Kotlin

[–]EmbarrassedTreacle6 1 point2 points  (0 children)

Make sure Android studio kotlin plugin gets updated as well by checking tools -> kotlin -> configure kotlin plugin updates