Properties
any
any: (test: (element: T) => boolean) => boolean
Type declaration
-
- (test: (element: T) => boolean): boolean
-
Parameters
-
test: (element: T) => boolean
-
-
Parameters
Returns boolean
Returns boolean
contains
contains: (element?: Object) => boolean
Type declaration
-
- (element?: Object): boolean
-
Parameters
Returns boolean
elementAt
elementAt: (index: number) => T
every
every: (test: (element: T) => boolean) => boolean
Type declaration
-
- (test: (element: T) => boolean): boolean
-
Parameters
-
test: (element: T) => boolean
-
-
Parameters
Returns boolean
Returns boolean
expand
Type declaration
-
-
Type parameters
Parameters
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
-
-
Parameters
Returns boolean
-
props: { orElse?: () => undefined | T }
-
Optional orElse?: () => 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
Parameters
-
initialValue: T
-
combine: (previousValue: T, element: T) => T
-
- (previousValue: T, element: T): T
-
Parameters
-
previousValue: T
-
element: T
Returns T
Returns T
forEach
forEach: (f: (element: T) => void) => void
Type declaration
-
- (f: (element: T) => void): void
getFirst
getFirst: () => T
getIsEmpty
getIsEmpty: () => boolean
getIsNotEmpty
getIsNotEmpty: () => boolean
getLength
getLength: () => number
getSingle
getSingle: () => T
join
join: (separator: string) => string
Type declaration
-
- (separator: string): string
-
Parameters
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
-
-
Parameters
Returns boolean
-
props: { orElse?: () => undefined | T }
-
Optional orElse?: () => undefined | T
Returns T
map
Type declaration
-
-
Type parameters
Parameters
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
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
-
-
Parameters
Returns boolean
-
props: { orElse?: () => undefined | T }
-
Optional orElse?: () => undefined | T
Returns T
skipWhile
skip
While: (test: (value: T) => boolean) => IIterable<T>
Type declaration
-
-
Parameters
-
test: (value: T) => boolean
-
-
Parameters
Returns boolean
takeWhile
take
While: (test: (value: T) => boolean) => IIterable<T>
Type declaration
-
-
Parameters
-
test: (value: T) => boolean
-
-
Parameters
Returns boolean
toList
to
List: (props: { growable: boolean }) => IList<T>
Type declaration
-
- (props: { growable: boolean }): IList<T>
-
Parameters
-
props: { growable: boolean }
Returns IList<T>
toString
toString: () => string
where
where
: (test
: (element
: T) => boolean) => IIterable<T>
Type declaration
-
- (test: (element: T) => boolean): IIterable<T>
-
Parameters
-
test: (element: T) => boolean
-
-
Parameters
Returns boolean