Function flatten

  • Flattens one level the passed-in nested iterable.

    Type Parameters

    • Iter extends AnyIt<It<V>>
    • V = AnyItItV<Iter>

    Parameters

    Returns CondIt<Iter, It<V>, AIt<V>>

    Example

    // Returns an Iterable representing [1, 2, 3]
    it.flatten([[1], [2], [3]])