All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generated._Sequences.kt Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package kotlin

//
// NOTE THIS FILE IS AUTO-GENERATED by the GenerateStandardLib.kt
// See: https://github.com/JetBrains/kotlin/tree/master/libraries/stdlib
//

import kotlin.platform.*
import java.util.*

import java.util.Collections // TODO: it's temporary while we have java.util.Collections in js

/**
 * Returns a sequence from the given collection.
 */
public fun  Array.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun BooleanArray.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun ByteArray.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun CharArray.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun DoubleArray.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun FloatArray.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun IntArray.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun LongArray.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun ShortArray.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun  Iterable.asSequence(): Sequence {
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun  Map.asSequence(): Sequence> {
    return object : Sequence> {
        override fun iterator(): Iterator> {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection.
 */
public fun  Sequence.asSequence(): Sequence {
    return this
}

/**
 * Returns a sequence from the given collection.
 */
public fun String.asSequence(): Sequence {
    if (isEmpty()) return emptySequence()
    return object : Sequence {
        override fun iterator(): Iterator {
            return [email protected]()
        }
    }
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun  Array.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun BooleanArray.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun ByteArray.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun CharArray.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun DoubleArray.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun FloatArray.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun IntArray.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun LongArray.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun ShortArray.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun  Iterable.sequence(): Sequence {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun  Map.sequence(): Sequence> {
    return asSequence()
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun  Sequence.sequence(): Sequence {
    return this
}

/**
 * Returns a sequence from the given collection
 */
deprecated("Use asSequence() instead", ReplaceWith("asSequence()"))
public fun String.sequence(): Sequence {
    return asSequence()
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy