package v_collections

fun example8() {
    val numbers = listOf(1, 3, -4, 2, -11)

    //the details (how multi-assignment works) you'll found in 'Conventions' task later
    val (positive, negative) = numbers.partition { it > 0 }

    positive == listOf(1, 3, 2)
    negative == listOf(-4, -11)
}

fun Shop.getCustomersWithMoreUndeliveredOrdersThanDelivered(): Set<Customer> {
    // Return customers who have more undelivered orders than delivered
    todoCollectionTask()
}

package v_collections

fun example8() {
    val numbers = listOf(1, 3, -4, 2, -11)

    //the details (how multi-assignment works) were explained in 'Conventions' task earlier
    val (positive, negative) = numbers.partition { it > 0 }

    positive == listOf(1, 3, 2)
    negative == listOf(-4, -11)
}

fun Shop.getCustomersWithMoreUndeliveredOrdersThanDelivered(): Set<Customer> {
    // Return customers who have more undelivered orders than delivered
    todoCollectionTask()
}

Fix comment for task V.
Fix comment for task V.

johnnywey/kotlin-koans,MichaelEvans/kotlin-koans,fnouama/workshop-jb,Riccorl/kotlin-koans,aksiksi/workshop-jb,trmollet/tuto_kotlin,yamamotoj/workshop-jb,Kotlin/kotlin-koans,ian-pi/kotlin-koans,chickenbane/workshop-jb,alapshin/workshop-jb,nakih/kotlin-koans,zlsun/kotlin-koans,sunghwanJo/workshop-jb,sarvex/kotlin-koans,Jachu5/Koans,rpandey1234/kotlin-koans,annekellyc/kotlin-koans,vitaliy555/stdkotlin,sleberknight/kotlin-koans,FaustXVI/kotlin-koans,marc-inn/learning-kotlin-from-jb,FaustXVI/kotlin-koans,annekellyc/kotlin-koans,xcerx/kotlin-koans,mvaldez/kotlin-examples,RomanBelkov/workshop-jb,TheCoinTosser/Kotlin-Koans---Solutions,Yusuzhan/kotlin-koans,AlexKrupa/kotlin-koans,sunghwanJo/workshop-jb,myoffe/kotlin-koans,kozake/kotlin-koans,michael-johansen/workshop-jb,vitaliy555/stdkotlin,enchf/kotlin-koans,goodwinnk/workshop-jb,griffio/workshop-jb,timbotetsu/kotlin-koans,eviera/kotlin-koans,sarvex/kotlin-koans,Carighan/kotlin-koans,andersschuller/workshop-jb,Riccorl/kotlin-koans,tobydigz/androidkotlin,TheCoinTosser/Kotlin-Koans---Solutions,usommerl/kotlin-koans,wickedwukong/kotlin-koans,zyallday/kotlin-koans,wickedwukong/kotlin-koans,chickenbane/workshop-jb,nakih/kotlin-koans,verhoevenv/kotlin-koans,chrisdoc/kotlin-koans,jghoman/workshop-jb,jensim/kotlin-koans,ian-pi/kotlin-koans,verhoevenv/kotlin-koans,andersschuller/workshop-jb,jasonmfehr/kotlin-koans,hughandrewarch/kotlin-koans,jasonmfehr/kotlin-koans,thatadamedwards/kotlin-koans,xcerx/kotlin-koans,RomanBelkov/workshop-jb,rpandey1234/kotlin-koans,eviera/kotlin-koans,MichaelEvans/kotlin-koans,sarvex/workshop-jb,sarvex/workshop-jb,marc-inn/learning-kotlin-from-jb,jghoman/workshop-jb,hughandrewarch/kotlin-koans,usommerl/kotlin-koans,zlsun/kotlin-koans,Kotlin/kotlin-koans,griffio/workshop-jb,Yusuzhan/kotlin-koans,yamamotoj/workshop-jb,johnnywey/kotlin-koans,sleberknight/kotlin-koans,kozake/kotlin-koans,aksiksi/workshop-jb,enchf/kotlin-koans,AlexKrupa/kotlin-koans,BryanJacobs/workshop-jb,Jachu5/Koans,mvaldez/kotlin-examples,JetBrains/workshop-jb,jensim/kotlin-koans,JetBrains/workshop-jb,Carighan/kotlin-koans,michael-johansen/workshop-jb,trmollet/tuto_kotlin,thatadamedwards/kotlin-koans,goodwinnk/workshop-jb,alapshin/workshop-jb,ncruz8991/kotlin-koans,BryanJacobs/workshop-jb,jvsegarra/kotlin-koans,mustafa01ali/workshop-jb,SteveChalker/kotlin-koans,tobydigz/androidkotlin,myoffe/kotlin-koans,mustafa01ali/workshop-jb,fnouama/workshop-jb,timbotetsu/kotlin-koans,jvsegarra/kotlin-koans,chrisdoc/kotlin-koans,zyallday/kotlin-koans,ncruz8991/kotlin-koans,SteveChalker/kotlin-koans