package Ġarrow . core . extensions . sequence . alternative Ċ Ċ import Ġarrow . Kind Ċ import Ġarrow . core . For Sequence K Ċ import Ġarrow . core . Option Ċ import Ġarrow . core . extensions . Sequence K Alternative Ċ import Ġkotlin . sequences . Sequence Ċ Ċ @ Jvm Name (" some ") Ċ @ Suppress ( ĊĠ Ġ" UN CHECK ED _ CAST ", ĊĠ Ġ" USE LESS _ CAST ", ĊĠ Ġ" EXTENSION _ SH ADOW ED _ BY _ MEMBER ", ĊĠ Ġ" UNUSED _ PARAMETER " Ċ ) Ċ @ Deprecated ( ĊĠ Ġ"@ extension Ġkin ded Ġprojected Ġfunctions Ġare Ġdeprecated ", ĊĠ ĠReplace With ( ĊĠĠĠ Ġ" this . some ()", ĊĠĠĠ Ġ" arrow . core . some " ĊĠ Ġ), ĊĠ ĠDeprec ation Level . WARNING Ċ ) Ċ fun Ġ< A > ĠSequence < A >. some (): ĠSequence < Sequence < A >> Ġ= ĊĠ Ġarrow . core . extensions . sequence . alternative . Sequence . alternative (). run Ġ{ ĊĠĠĠ Ġarrow . core . Sequence K ( this @ some ). some < A >() Ġas ĊĠĠĠĠĠ Ġkotlin . sequences . Sequence < kotlin . sequences . Sequence < A >> ĊĠ Ġ} Ċ Ċ @ Jvm Name (" many ") Ċ @ Suppress ( ĊĠ Ġ" UN CHECK ED _ CAST ", ĊĠ Ġ" USE LESS _ CAST ", ĊĠ Ġ" EXTENSION _ SH ADOW ED _ BY _ MEMBER ", ĊĠ Ġ" UNUSED _ PARAMETER " Ċ ) Ċ @ Deprecated ( ĊĠ Ġ"@ extension Ġkin ded Ġprojected Ġfunctions Ġare Ġdeprecated ", ĊĠ ĠReplace With ( ĊĠĠĠ Ġ" this . many ()", ĊĠĠĠ Ġ" arrow . core . many " ĊĠ Ġ), ĊĠ ĠDeprec ation Level . WARNING Ċ ) Ċ fun Ġ< A > ĠSequence < A >. many (): ĠSequence < Sequence < A >> Ġ= ĊĠ Ġarrow . core . extensions . sequence . alternative . Sequence . alternative (). run Ġ{ ĊĠĠĠ Ġarrow . core . Sequence K ( this @ many ). many < A >() Ġas ĊĠĠĠĠĠ Ġkotlin . sequences . Sequence < kotlin . sequences . Sequence < A >> ĊĠ Ġ} Ċ Ċ @ Jvm Name (" alt ") Ċ @ Suppress ( ĊĠ Ġ" UN CHECK ED _ CAST ", ĊĠ Ġ" USE LESS _ CAST ", ĊĠ Ġ" EXTENSION _ SH ADOW ED _ BY _ MEMBER ", ĊĠ Ġ" UNUSED _ PARAMETER " Ċ ) Ċ @ Deprecated ( ĊĠ Ġ"@ extension Ġkin ded Ġprojected Ġfunctions Ġare Ġdeprecated ", ĊĠ ĠReplace With ( ĊĠĠĠ Ġ" this Ġ+ Ġarg 1 " ĊĠ Ġ), ĊĠ ĠDeprec ation Level . WARNING Ċ ) Ċ infix Ġfun Ġ< A > ĠSequence < A >. alt ( arg 1 : ĠSequence < A >): ĠSequence < A > Ġ= ĊĠ Ġarrow . core . extensions . sequence . alternative . Sequence . alternative (). run Ġ{ ĊĠĠĠ Ġarrow . core . Sequence K ( this @ alt ). alt < A >( arrow . core . Sequence K ( arg 1 )) Ġas Ġkotlin . sequences . Sequence < A > ĊĠ Ġ} Ċ Ċ @ Jvm Name (" orElse ") Ċ @ Suppress ( ĊĠ Ġ" UN CHECK ED _ CAST ", ĊĠ Ġ" USE LESS _ CAST ", ĊĠ Ġ" EXTENSION _ SH ADOW ED _ BY _ MEMBER ", ĊĠ Ġ" UNUSED _ PARAMETER " Ċ ) Ċ @ Deprecated ( ĊĠ Ġ"@ extension Ġkin ded Ġprojected Ġfunctions Ġare Ġdeprecated ", ĊĠ ĠReplace With ( ĊĠĠĠ Ġ" this Ġ+ Ġarg 1 " ĊĠ Ġ), ĊĠ ĠDeprec ation Level . WARNING Ċ ) Ċ fun Ġ< A > ĠSequence < A >. orElse ( arg 1 : ĠSequence < A >): ĠSequence < A > Ġ= ĊĠ Ġarrow . core . extensions . sequence . alternative . Sequence . alternative (). run Ġ{ ĊĠĠĠ Ġarrow . core . Sequence K ( this @ orElse ). orElse < A >( arrow . core . Sequence K ( arg 1 )) Ġas ĊĠĠĠĠĠ Ġkotlin . sequences . Sequence < A > ĊĠ Ġ} Ċ Ċ @ Jvm Name (" combine K ") Ċ @ Suppress ( ĊĠ Ġ" UN CHECK ED _ CAST ", ĊĠ Ġ" USE LESS _ CAST ", ĊĠ Ġ" EXTENSION _ SH ADOW ED _ BY _ MEMBER ", ĊĠ Ġ" UNUSED _ PARAMETER " Ċ ) Ċ @ Deprecated ( ĊĠ Ġ"@ extension Ġkin ded Ġprojected Ġfunctions Ġare Ġdeprecated ", ĊĠ ĠReplace With ( ĊĠĠĠ Ġ" this Ġ+ Ġarg 1 " ĊĠ Ġ), ĊĠ ĠDeprec ation Level . WARNING Ċ ) Ċ fun Ġ< A > ĠSequence < A >. combine K ( arg 1 : ĠSequence < A >): ĠSequence < A > Ġ= ĊĠ Ġarrow . core . extensions . sequence . alternative . Sequence . alternative (). run Ġ{ ĊĠĠĠ Ġarrow . core . Sequence K ( this @ combine K ). combine K < A >( arrow . core . Sequence K ( arg 1 )) Ġas ĊĠĠĠĠĠ Ġkotlin . sequences . Sequence < A > ĊĠ Ġ} Ċ Ċ @ Jvm Name (" optional ") Ċ @ Suppress ( ĊĠ Ġ" UN CHECK ED _ CAST ", ĊĠ Ġ" USE LESS _ CAST ", ĊĠ Ġ" EXTENSION _ SH ADOW ED _ BY _ MEMBER ", ĊĠ Ġ" UNUSED _ PARAMETER " Ċ ) Ċ @ Deprecated ( ĊĠ Ġ"@ extension Ġkin ded Ġprojected Ġfunctions Ġare Ġdeprecated ", ĊĠ ĠReplace With ( ĊĠĠĠ Ġ" this . map (:: Some ) Ġ+ Ġsequence Of ( None )", ĊĠĠĠ Ġ" arrow . core . None ", ĊĠĠĠ Ġ" arrow . core . Some " ĊĠ Ġ), ĊĠ ĠDeprec ation Level . WARNING Ċ ) Ċ fun Ġ< A > ĠSequence < A >. optional (): ĠSequence < Option < A >> Ġ= ĊĠ Ġarrow . core . extensions . sequence . alternative . Sequence . alternative (). run Ġ{ ĊĠĠĠ Ġarrow . core . Sequence K ( this @ optional ). optional < A >() Ġas ĊĠĠĠĠĠ Ġkotlin . sequences . Sequence < arrow . core . Option < A >> ĊĠ Ġ} Ċ Ċ @ Jvm Name (" guard ") Ċ @ Suppress ( ĊĠ Ġ" UN CHECK ED _ CAST ", ĊĠ Ġ" USE LESS _ CAST ", ĊĠ Ġ" EXTENSION _ SH ADOW ED _ BY _ MEMBER ", ĊĠ Ġ" UNUSED _ PARAMETER " Ċ ) Ċ @ Deprecated ( ĊĠ Ġ"@ extension Ġkin ded Ġprojected Ġfunctions Ġare Ġdeprecated ", ĊĠ ĠReplace With ( ĊĠĠĠ Ġ" if Ġ( arg 0 ) Ġsequence Of ( Unit ) Ġelse Ġempty Sequence ()" ĊĠ Ġ), ĊĠ ĠDeprec ation Level . WARNING Ċ ) Ċ fun Ġguard ( arg 0 : ĠBoolean ): ĠSequence < Unit > Ġ= Ġarrow . core . extensions . sequence . alternative . Sequence ĊĠ Ġ. alternative () ĊĠ Ġ. guard ( arg 0 ) Ġas Ġkotlin . sequences . Sequence < kotlin . Unit > Ċ Ċ @ Jvm Name (" lazy OrElse ") Ċ @ Suppress ( ĊĠ Ġ" UN CHECK ED _ CAST ", ĊĠ Ġ" USE LESS _ CAST ", ĊĠ Ġ" EXTENSION _ SH ADOW ED _ BY _ MEMBER ", ĊĠ Ġ" UNUSED _ PARAMETER " Ċ ) Ċ @ Deprecated ( ĊĠ Ġ"@ extension Ġkin ded Ġprojected Ġfunctions Ġare Ġdeprecated ", ĊĠ ĠReplace With ( ĊĠĠĠ Ġ" this Ġ+ Ġarg 1 ()" ĊĠ Ġ), ĊĠ ĠDeprec ation Level . WARNING Ċ ) Ċ fun Ġ< A > ĠSequence < A >. lazy OrElse ( arg 1 : ĠFunction 0 < Kind < For Sequence K , ĠA >> ): ĠSequence < A > Ġ= ĊĠ Ġarrow . core . extensions . sequence . alternative . Sequence . alternative (). run Ġ{ ĊĠĠĠ Ġarrow . core . Sequence K ( this @ lazy OrElse ). lazy OrElse < A >( arg 1 ) Ġas Ġkotlin . sequences . Sequence < A > ĊĠ Ġ} Ċ Ċ /** Ċ Ġ* Ġcached Ġextension Ċ Ġ*/ Ċ @ Published Api () Ċ internal Ġval Ġalternative _ singleton : ĠSequence K Alternative Ġ= Ġobject Ġ: ĊĠ Ġarrow . core . extensions . Sequence K Alternative Ġ{} Ċ Ċ @ Deprecated ( ĊĠ Ġ" Receiver ĠSequence Ġobject Ġis Ġdeprecated , Ġprefer Ġto Ġturn ĠSequence Ġfunctions Ġinto Ġtop - level Ġfunctions ", ĊĠ Ġlevel Ġ= ĠDeprec ation Level . WARNING Ċ ) Ċ object ĠSequence Ġ{ ĊĠ Ġ@ Suppress ( ĊĠĠĠ Ġ" UN CHECK ED _ CAST ", ĊĠĠĠ Ġ" NOTH ING _ TO _ INLINE " ĊĠ Ġ) ĊĠ Ġ@ Deprecated ( ĊĠĠĠ Ġ" Alternative Ġtype class Ġis Ġdeprecated . ĠUse Ġconcrete Ġmethods Ġon ĠSequence ", ĊĠĠĠ Ġlevel Ġ= ĠDeprec ation Level . WARNING ĊĠ Ġ) ĊĠ Ġinline Ġfun Ġalternative (): ĠSequence K Alternative Ġ= Ġalternative _ singleton Ċ } Ċ