Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IIterableBase<E>

Type parameters

  • E

Hierarchy

  • IIterableBase

Implemented by

Index

Properties

any

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

cast

cast: <R>() => IIterable<R>

Type declaration

contains

contains: (element?: Object) => boolean

Type declaration

    • (element?: Object): boolean
    • Parameters

      • Optional element: Object

      Returns boolean

elementAt

elementAt: (index: number) => E

Type declaration

    • (index: number): E
    • Parameters

      • index: number

      Returns E

every

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

expand

expand: <T>(f: (element: E) => IIterable<T>) => IIterable<T>

Type declaration

firstWhere

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

fold

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

followedBy

followedBy: (other: IIterable<E>) => IIterable<E>

Type declaration

forEach

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

getFirst

getFirst: () => E

Type declaration

    • (): E
    • Returns E

getHashCode

getHashCode: () => number

Type declaration

    • (): number
    • Returns number

getIsEmpty

getIsEmpty: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

getIsNotEmpty

getIsNotEmpty: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

getIterator

getIterator: () => IIterator<E>

Type declaration

getLast

getLast: () => E

Type declaration

    • (): E
    • Returns E

getLength

getLength: () => number

Type declaration

    • (): number
    • Returns number

getSingle

getSingle: () => E

Type declaration

    • (): E
    • Returns E

join

join: (separator: string) => string

Type declaration

    • (separator: string): string
    • Parameters

      • separator: string

      Returns string

lastWhere

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

map

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>

reduce

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

singleWhere

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

skip

skip: (count: number) => IIterable<E>

Type declaration

skipWhile

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>

take

take: (count: number) => IIterable<E>

Type declaration

takeWhile

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>

toList

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

Type declaration

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

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

      Returns IList<E>

toSet

toSet: () => ISet<E>

Type declaration

toString

toString: () => string

Type declaration

    • (): string
    • Returns string

where

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>

whereType

whereType: <T>() => IIterable<T>

Type declaration

Generated using TypeDoc