firstOrNull method

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

Implementation

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