Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Iterable<E>

Type parameters

  • E

Hierarchy

  • Iterable

Index

Constructors

constructor

Properties

Private Readonly _dart_any

_dart_any: (test: (element: E) => boolean) => boolean = ...

Type declaration

    • (test: (element: E) => boolean): boolean
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns boolean

Private Readonly _dart_cast

_dart_cast: <R>() => IIterable<R> = ...

Type declaration

Private Readonly _dart_contains

_dart_contains: (element?: Object) => boolean = ...

Type declaration

    • (element?: Object): boolean
    • Parameters

      • Optional element: Object

      Returns boolean

Private Readonly _dart_elementAt

_dart_elementAt: (index: number) => E = ...

Type declaration

    • (index: number): E
    • Parameters

      • index: number

      Returns E

Private Readonly _dart_every

_dart_every: (test: (element: E) => boolean) => boolean = ...

Type declaration

    • (test: (element: E) => boolean): boolean
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns boolean

Private Readonly _dart_expand

_dart_expand: <T>(f: (element: E) => IIterable<T>) => IIterable<T> = ...

Type declaration

Private Readonly _dart_firstWhere

_dart_firstWhere: (test: (element: E) => boolean, props: { orElse?: () => undefined | E }) => E = ...

Type declaration

    • (test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • props: { orElse?: () => undefined | E }
        • Optional orElse?: () => undefined | E
            • (): undefined | E
            • Returns undefined | E

      Returns E

Private Readonly _dart_fold

_dart_fold: <T>(initialValue: T, combine: (previousValue: T, element: E) => T) => T = ...

Type declaration

    • <T>(initialValue: T, combine: (previousValue: T, element: E) => T): T
    • Type parameters

      • T

      Parameters

      • initialValue: T
      • combine: (previousValue: T, element: E) => T
          • (previousValue: T, element: E): T
          • Parameters

            • previousValue: T
            • element: E

            Returns T

      Returns T

Private Readonly _dart_followedBy

_dart_followedBy: (other: IIterable<E>) => IIterable<E> = ...

Type declaration

Private Readonly _dart_forEach

_dart_forEach: (f: (element: E) => void) => void = ...

Type declaration

    • (f: (element: E) => void): void
    • Parameters

      • f: (element: E) => void
          • (element: E): void
          • Parameters

            • element: E

            Returns void

      Returns void

Private Readonly _dart_getFirst

_dart_getFirst: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_getIsEmpty

_dart_getIsEmpty: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getIsNotEmpty

_dart_getIsNotEmpty: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

Private Readonly _dart_getIterator

_dart_getIterator: () => IIterator<E> = ...

Type declaration

Private Readonly _dart_getLast

_dart_getLast: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_getLength

_dart_getLength: () => number = ...

Type declaration

    • (): number
    • Returns number

Private Readonly _dart_getSingle

_dart_getSingle: () => E = ...

Type declaration

    • (): E
    • Returns E

Private Readonly _dart_join

_dart_join: (separator: string) => string = ...

Type declaration

    • (separator: string): string
    • Parameters

      • separator: string

      Returns string

Private Readonly _dart_lastWhere

_dart_lastWhere: (test: (element: E) => boolean, props: { orElse?: () => undefined | E }) => E = ...

Type declaration

    • (test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • props: { orElse?: () => undefined | E }
        • Optional orElse?: () => undefined | E
            • (): undefined | E
            • Returns undefined | E

      Returns E

Private Readonly _dart_map

_dart_map: <T>(f: (e: E) => T) => IIterable<T> = ...

Type declaration

    • Type parameters

      • T

      Parameters

      • f: (e: E) => T
          • (e: E): T
          • Parameters

            • e: E

            Returns T

      Returns IIterable<T>

Private Readonly _dart_reduce

_dart_reduce: (combine: (value: E, element: E) => E) => E = ...

Type declaration

    • (combine: (value: E, element: E) => E): E
    • Parameters

      • combine: (value: E, element: E) => E
          • (value: E, element: E): E
          • Parameters

            • value: E
            • element: E

            Returns E

      Returns E

Private Readonly _dart_singleWhere

_dart_singleWhere: (test: (element: E) => boolean, props: { orElse?: () => undefined | E }) => E = ...

Type declaration

    • (test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      • props: { orElse?: () => undefined | E }
        • Optional orElse?: () => undefined | E
            • (): undefined | E
            • Returns undefined | E

      Returns E

Private Readonly _dart_skip

_dart_skip: (count: number) => IIterable<E> = ...

Type declaration

Private Readonly _dart_skipWhile

_dart_skipWhile: (test: (value: E) => boolean) => IIterable<E> = ...

Type declaration

    • (test: (value: E) => boolean): IIterable<E>
    • Parameters

      • test: (value: E) => boolean
          • (value: E): boolean
          • Parameters

            • value: E

            Returns boolean

      Returns IIterable<E>

Private Readonly _dart_take

_dart_take: (count: number) => IIterable<E> = ...

Type declaration

Private Readonly _dart_takeWhile

_dart_takeWhile: (test: (value: E) => boolean) => IIterable<E> = ...

Type declaration

    • (test: (value: E) => boolean): IIterable<E>
    • Parameters

      • test: (value: E) => boolean
          • (value: E): boolean
          • Parameters

            • value: E

            Returns boolean

      Returns IIterable<E>

Private Readonly _dart_toList

_dart_toList: (props: { growable: boolean }) => IList<E> = ...

Type declaration

    • (props: { growable: boolean }): IList<E>
    • Parameters

      • props: { growable: boolean }
        • growable: boolean

      Returns IList<E>

Private Readonly _dart_toSet

_dart_toSet: () => ISet<E> = ...

Type declaration

Private Readonly _dart_toString

_dart_toString: () => string = ...

Type declaration

    • (): string
    • Returns string

Private Readonly _dart_where

_dart_where: (test: (element: E) => boolean) => IIterable<E> = ...

Type declaration

    • (test: (element: E) => boolean): IIterable<E>
    • Parameters

      • test: (element: E) => boolean
          • (element: E): boolean
          • Parameters

            • element: E

            Returns boolean

      Returns IIterable<E>

Private Readonly _dart_whereType

_dart_whereType: <T>() => IIterable<T> = ...

Type declaration

Methods

any

  • any(test: (element: E) => boolean): boolean
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns boolean

cast

contains

  • contains(element?: Object): boolean

elementAt

  • elementAt(index: number): E

every

  • every(test: (element: E) => boolean): boolean
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    Returns boolean

expand

firstWhere

  • firstWhere(test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • props: { orElse?: () => undefined | E }
      • Optional orElse?: () => undefined | E
          • (): undefined | E
          • Returns undefined | E

    Returns E

fold

  • fold<T>(initialValue: T, combine: (previousValue: T, element: E) => T): T
  • Type parameters

    • T

    Parameters

    • initialValue: T
    • combine: (previousValue: T, element: E) => T
        • (previousValue: T, element: E): T
        • Parameters

          • previousValue: T
          • element: E

          Returns T

    Returns T

followedBy

forEach

  • forEach(f: (element: E) => void): void
  • Parameters

    • f: (element: E) => void
        • (element: E): void
        • Parameters

          • element: E

          Returns void

    Returns void

getFirst

  • getFirst(): E

getIsEmpty

  • getIsEmpty(): boolean

getIsNotEmpty

  • getIsNotEmpty(): boolean

getIterator

getLast

  • getLast(): E

getLength

  • getLength(): number

getSingle

  • getSingle(): E

join

  • join(separator?: string): string

lastWhere

  • lastWhere(test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • props: { orElse?: () => undefined | E }
      • Optional orElse?: () => undefined | E
          • (): undefined | E
          • Returns undefined | E

    Returns E

map

reduce

  • reduce(combine: (value: E, element: E) => E): E
  • Parameters

    • combine: (value: E, element: E) => E
        • (value: E, element: E): E
        • Parameters

          • value: E
          • element: E

          Returns E

    Returns E

singleWhere

  • singleWhere(test: (element: E) => boolean, props: { orElse?: () => undefined | E }): E
  • Parameters

    • test: (element: E) => boolean
        • (element: E): boolean
        • Parameters

          • element: E

          Returns boolean

    • props: { orElse?: () => undefined | E }
      • Optional orElse?: () => undefined | E
          • (): undefined | E
          • Returns undefined | E

    Returns E

skip

skipWhile

  • skipWhile(test: (value: E) => boolean): IIterable<E>

take

takeWhile

  • takeWhile(test: (value: E) => boolean): IIterable<E>

toList

  • toList(props: { growable?: boolean }): IList<E>

toSet

toString

  • toString(): string

where

  • where(test: (element: E) => boolean): IIterable<E>

whereType

Static castFrom

Static empty

Static generate

  • generate<E>(count: number, generator?: (index: number) => E): IIterable<E>
  • Type parameters

    • E

    Parameters

    • count: number
    • Optional generator: (index: number) => E
        • (index: number): E
        • Parameters

          • index: number

          Returns E

    Returns IIterable<E>

Generated using TypeDoc