Skip to content

Commit

Permalink
feat(zipWithNext, pairwise): add zipWithNext, add `pairwise(transfo…
Browse files Browse the repository at this point in the history
…rm)`

Related issue: Kotlin/kotlinx.coroutines#1767
  • Loading branch information
hoc081098 committed Oct 10, 2023
1 parent 55e0ad2 commit e0bf3c8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,12 @@ import kotlin.jvm.JvmField
@JvmField
public val NULL_VALUE: Symbol = Symbol("NULL_VALUE")

/**
* This is a work-around for having nested nulls in generic code.
* This allows for writing faster generic code instead of using `Option`.
* This is only used as an optimisation technique in low-level code.
*
* This is internal and should not be used outside of the library.
*/
@JvmField
internal val INTERNAL_NULL_VALUE: Symbol = Symbol("INTERNAL_NULL_VALUE")

0 comments on commit e0bf3c8

Please sign in to comment.