Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IEfficientLengthIterable<T>

Type parameters

  • T

Hierarchy

Implemented by

Index

Properties

any

any: (test: (element: T) => boolean) => boolean

Type declaration

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

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

            • element: T

            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) => T

Type declaration

    • (index: number): T
    • Parameters

      • index: number

      Returns T

every

every: (test: (element: T) => boolean) => boolean

Type declaration

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

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

            • element: T

            Returns boolean

      Returns boolean

expand

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

Type declaration

firstWhere

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

Type declaration

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

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

            • element: T

            Returns boolean

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

      Returns T

fold

fold: <T>(initialValue: T, combine: (previousValue: T, element: T) => T) => T

Type declaration

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

      • T

      Parameters

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

            • previousValue: T
            • element: T

            Returns T

      Returns T

followedBy

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

Type declaration

forEach

forEach: (f: (element: T) => void) => void

Type declaration

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

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

            • element: T

            Returns void

      Returns void

getFirst

getFirst: () => T

Type declaration

    • (): T
    • Returns T

getIsEmpty

getIsEmpty: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

getIsNotEmpty

getIsNotEmpty: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

getIterator

getIterator: () => IIterator<T>

Type declaration

getLast

getLast: () => T

Type declaration

    • (): T
    • Returns T

getLength

getLength: () => number

Type declaration

    • (): number
    • Returns number

getSingle

getSingle: () => T

Type declaration

    • (): T
    • Returns T

join

join: (separator: string) => string

Type declaration

    • (separator: string): string
    • Parameters

      • separator: string

      Returns string

lastWhere

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

Type declaration

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

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

            • element: T

            Returns boolean

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

      Returns T

map

map: <T>(f: (e: T) => T) => IIterable<T>

Type declaration

    • Type parameters

      • T

      Parameters

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

            • e: T

            Returns T

      Returns IIterable<T>

reduce

reduce: (combine: (value: T, element: T) => T) => T

Type declaration

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

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

            • value: T
            • element: T

            Returns T

      Returns T

singleWhere

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

Type declaration

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

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

            • element: T

            Returns boolean

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

      Returns T

skip

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

Type declaration

skipWhile

skipWhile: (test: (value: T) => boolean) => IIterable<T>

Type declaration

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

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

            • value: T

            Returns boolean

      Returns IIterable<T>

take

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

Type declaration

takeWhile

takeWhile: (test: (value: T) => boolean) => IIterable<T>

Type declaration

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

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

            • value: T

            Returns boolean

      Returns IIterable<T>

toList

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

Type declaration

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

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

      Returns IList<T>

toSet

toSet: () => ISet<T>

Type declaration

toString

toString: () => string

Type declaration

    • (): string
    • Returns string

where

where: (test: (element: T) => boolean) => IIterable<T>

Type declaration

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

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

            • element: T

            Returns boolean

      Returns IIterable<T>

whereType

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

Type declaration

Generated using TypeDoc