singleOrNull method

  1. @Deprecated("SingleOrNull is not supported as it would require consuming part of the iterator, which is likely not the users intent. Use next() instead.")
Never singleOrNull()

Implementation

@Deprecated(
    "SingleOrNull is not supported as it would require consuming part of the iterator, which is likely not the users intent. Use next() instead.")
Never singleOrNull() =>
    throw "SingleOrNull is not supported as it would require consuming part of the iterator, which is likely not the users intent. Use peekable() instead.";