/* Ċ Ġ* ĠCopyright Ġ 2 0 1 0 - 2 0 2 0 ĠJetBrains Ġs . r . o . Ġand ĠKotlin ĠProgramming ĠLanguage Ġcontributors . Ċ Ġ* ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe Ġlicense / LICENSE . txt Ġfile . Ċ Ġ*/ Ċ Ċ package Ġkotlin . collections Ċ Ċ actual Ġinterface ĠRandom Access Ċ Ċ /** ĠReturns Ġthe Ġarray Ġif Ġit 's Ġnot Ġ` null `, Ġor Ġan Ġempty Ġarray Ġotherwise . Ġ*/ Ċ actual Ġinline Ġfun Ġ< re ified ĠT > ĠArray < out ĠT > ?. or Empty (): ĠArray < out ĠT > Ġ= Ġthis Ġ?: Ġempty Array < T >() ĊĊ Ċ public Ġactual Ġinline Ġfun Ġ< re ified ĠT > ĠCollection < T >. to Typed Array (): ĠArray < T > Ġ{ ĊĠĠĠ Ġval Ġresult Ġ= ĠarrayOf Null s < T >( size ) ĊĠĠĠ Ġvar Ġindex Ġ= Ġ 0 ĊĠĠĠ Ġfor Ġ( element Ġin Ġthis ) Ġresult [ index ++] Ġ= Ġelement ĊĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠ Ġreturn Ġresult Ġas ĠArray < T > Ċ } Ċ Ċ @ Since Kotlin (" 1 . 2 ") Ċ actual Ġfun Ġ< T > ĠMutable List < T >. fill ( value : ĠT ): ĠUnit Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ Ċ @ Since Kotlin (" 1 . 2 ") Ċ actual Ġfun Ġ< T > ĠMutable List < T >. shuffle (): ĠUnit Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ Ċ @ Since Kotlin (" 1 . 2 ") Ċ actual Ġfun Ġ< T > ĠIterable < T >. sh uffled (): ĠList < T > Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ Ċ actual Ġfun Ġ< T Ġ: ĠComparable < T >> ĠMutable List < T >. sort (): ĠUnit Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ actual Ġfun Ġ< T > ĠMutable List < T >. sort With ( comparator : ĠComparator < in ĠT >): ĠUnit Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") ĊĊ Ċ // Ġfrom ĠGroup ing . kt Ċ public Ġactual Ġfun Ġ< T , ĠK > ĠGroup ing < T , ĠK >. each Count (): ĠMap < K , ĠInt > Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ // Ġpublic Ġactual Ġinline Ġfun Ġ< T , ĠK > ĠGroup ing < T , ĠK >. each Sum Of ( value Selector : Ġ( T ) Ġ-> ĠInt ): ĠMap < K , ĠInt > Ċ Ċ internal Ġactual Ġfun Ġ< K , ĠV > ĠMap < K , ĠV >. to Singleton Map Or Self (): ĠMap < K , ĠV > Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ internal Ġactual Ġfun Ġ< K , ĠV > ĠMap < out ĠK , ĠV >. to Singleton Map (): ĠMap < K , ĠV > Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ internal Ġactual Ġfun Ġ< T > ĠArray < out ĠT >. copy ToArray Of Any ( is Var args : ĠBoolean ): ĠArray < out ĠAny ?> Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ Ċ @ Published Api Ċ @ Since Kotlin (" 1 . 3 ") Ċ internal Ġactual Ġfun Ġcheck Index Overflow ( index : ĠInt ): ĠInt Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ Ċ @ Published Api Ċ @ Since Kotlin (" 1 . 3 ") Ċ internal Ġactual Ġfun Ġcheck Count Overflow ( count : ĠInt ): ĠInt Ġ= ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ Ċ @ Published Api Ċ @ Since Kotlin (" 1 . 3 ") Ċ @ Experimental Std lib Api Ċ @ kotlin . internal . Inline Only Ċ internal Ġactual Ġinline Ġfun Ġ< E > Ġbuild List Internal ( builder Action : ĠMutable List < E >. () Ġ-> ĠUnit ): ĠList < E > Ġ{ ĊĠĠĠ Ġreturn ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ } Ċ Ċ @ Published Api Ċ @ Since Kotlin (" 1 . 3 ") Ċ @ Experimental Std lib Api Ċ @ kotlin . internal . Inline Only Ċ internal Ġactual Ġinline Ġfun Ġ< E > Ġbuild List Internal ( capacity : ĠInt , Ġbuilder Action : ĠMutable List < E >. () Ġ-> ĠUnit ): ĠList < E > Ġ{ ĊĠĠĠ Ġcheck Builder Capacity ( capacity ) ĊĠĠĠ Ġreturn ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ } ĊĊ Ċ /** Ċ Ġ* ĠReturns Ġan Ġimmutable Ġset Ġcontaining Ġonly Ġthe Ġspecified Ġobject Ġ[ element ]. Ċ Ġ*/ Ċ public Ġfun Ġ< T > Ġset Of ( element : ĠT ): ĠSet < T > Ġ= Ġhash Set Of ( element ) Ċ Ċ @ Published Api Ċ @ Since Kotlin (" 1 . 3 ") Ċ @ Experimental Std lib Api Ċ @ kotlin . internal . Inline Only Ċ internal Ġactual Ġinline Ġfun Ġ< E > Ġbuild Set Internal ( builder Action : ĠMutable Set < E >. () Ġ-> ĠUnit ): ĠSet < E > Ġ{ ĊĠĠĠ Ġreturn ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ } Ċ Ċ @ Published Api Ċ @ Since Kotlin (" 1 . 3 ") Ċ @ Experimental Std lib Api Ċ @ kotlin . internal . Inline Only Ċ internal Ġactual Ġinline Ġfun Ġ< E > Ġbuild Set Internal ( capacity : ĠInt , Ġbuilder Action : ĠMutable Set < E >. () Ġ-> ĠUnit ): ĠSet < E > Ġ{ ĊĠĠĠ Ġreturn ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ } ĊĊ Ċ /** Ċ Ġ* ĠReturns Ġan Ġimmutable Ġmap , Ġmapping Ġonly Ġthe Ġspecified Ġkey Ġto Ġthe Ċ Ġ* Ġspecified Ġvalue . Ċ Ġ*/ Ċ public Ġfun Ġ< K , ĠV > Ġmap Of ( pair : ĠPair < K , ĠV >): ĠMap < K , ĠV > Ġ= Ġhash Map Of ( pair ) Ċ Ċ @ Published Api Ċ @ Since Kotlin (" 1 . 3 ") Ċ @ Experimental Std lib Api Ċ @ kotlin . internal . Inline Only Ċ internal Ġactual Ġinline Ġfun Ġ< K , ĠV > Ġbuild Map Internal ( builder Action : ĠMutable Map < K , ĠV >. () Ġ-> ĠUnit ): ĠMap < K , ĠV > Ġ{ ĊĠĠĠ Ġreturn ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ } Ċ Ċ @ Published Api Ċ @ Since Kotlin (" 1 . 3 ") Ċ @ Experimental Std lib Api Ċ @ kotlin . internal . Inline Only Ċ internal Ġactual Ġinline Ġfun Ġ< K , ĠV > Ġbuild Map Internal ( capacity : ĠInt , Ġbuilder Action : ĠMutable Map < K , ĠV >. () Ġ-> ĠUnit ): ĠMap < K , ĠV > Ġ{ ĊĠĠĠ Ġreturn ĠTODO (" W asm Ġstdlib : ĠCollections ") Ċ } Ċ Ċ internal Ġactual Ġfun Ġb rit tle Contains Optimization Enabled (): ĠBoolean Ġ= Ġfalse