Properties
add
add: (value: E) => void
any
any: (test: (element: E) => boolean) => boolean
Type declaration
-
- (test: (element: E) => boolean): boolean
-
Parameters
-
test: (element: E) => boolean
-
-
Parameters
Returns boolean
Returns boolean
cast
Type declaration
-
-
Type parameters
Returns IList<R>
contains
contains: (element?: Object) => boolean
Type declaration
-
- (element?: Object): boolean
-
Parameters
Returns boolean
elementAt
elementAt: (index: number) => E
every
every: (test: (element: E) => boolean) => boolean
Type declaration
-
- (test: (element: E) => boolean): boolean
-
Parameters
-
test: (element: E) => boolean
-
-
Parameters
Returns boolean
Returns boolean
expand
Type declaration
-
-
Type parameters
Parameters
fillRange
fillRange: (start: number, end: number, fillValue?: E) => void
Type declaration
-
- (start: number, end: number, fillValue?: E): void
-
Parameters
-
start: number
-
end: number
-
Optional fillValue: E
Returns void
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
-
-
Parameters
Returns boolean
-
props: { orElse?: () => undefined | E }
-
Optional orElse?: () => 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
Parameters
-
initialValue: T
-
combine: (previousValue: T, element: E) => T
-
- (previousValue: T, element: E): T
-
Parameters
-
previousValue: T
-
element: E
Returns T
Returns T
forEach
forEach: (f: (element: E) => void) => void
Type declaration
-
- (f: (element: E) => void): void
getFirst
getFirst: () => E
getHashCode
getHashCode: () => number
getIsEmpty
getIsEmpty: () => boolean
getIsNotEmpty
getIsNotEmpty: () => boolean
getLength
getLength: () => number
getRange
get
Range: (start: number, end: number) => IIterable<E>
Type declaration
-
-
Parameters
-
start: number
-
end: number
getSingle
getSingle: () => E
indexOf
indexOf: (element: E, start: number) => number
Type declaration
-
- (element: E, start: number): number
-
Parameters
Returns number
indexWhere
indexWhere: (test: (element: E) => boolean, start: number) => number
Type declaration
-
- (test: (element: E) => boolean, start: number): number
-
Parameters
-
test: (element: E) => boolean
-
-
Parameters
Returns boolean
-
start: number
Returns number
insert
insert: (index: number, element: E) => void
Type declaration
-
- (index: number, element: E): void
insertAll
insert
All: (index: number, iterable: IIterable<E>) => void
Type declaration
-
- (index: number, iterable: IIterable<E>): void
join
join: (separator: string) => string
Type declaration
-
- (separator: string): string
-
Parameters
Returns string
lastIndexOf
lastIndexOf: (element: E, start?: number) => number
Type declaration
-
- (element: E, start?: number): number
-
Parameters
-
element: E
-
Optional start: number
Returns number
lastIndexWhere
lastIndexWhere: (test: (element: E) => boolean, start?: number) => number
Type declaration
-
- (test: (element: E) => boolean, start?: number): number
-
Parameters
-
test: (element: E) => boolean
-
-
Parameters
Returns boolean
-
Optional start: number
Returns number
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
-
-
Parameters
Returns boolean
-
props: { orElse?: () => undefined | E }
-
Optional orElse?: () => undefined | E
Returns E
map
Type declaration
-
-
Type parameters
Parameters
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
Returns E
remove
remove: (value?: Object) => boolean
Type declaration
-
- (value?: Object): boolean
-
Parameters
Returns boolean
removeAt
removeAt: (index: number) => E
removeLast
removeLast: () => E
removeRange
removeRange: (start: number, end: number) => void
Type declaration
-
- (start: number, end: number): void
-
Parameters
-
start: number
-
end: number
Returns void
removeWhere
removeWhere: (test: (element: E) => boolean) => void
Type declaration
-
- (test: (element: E) => boolean): void
-
Parameters
-
test: (element: E) => boolean
-
-
Parameters
Returns boolean
Returns void
replaceRange
replace
Range: (start: number, end: number, replacement: IIterable<E>) => void
Type declaration
-
- (start: number, end: number, replacement: IIterable<E>): void
-
Parameters
-
start: number
-
end: number
-
Returns void
retainWhere
retainWhere: (test: (element: E) => boolean) => void
Type declaration
-
- (test: (element: E) => boolean): void
-
Parameters
-
test: (element: E) => boolean
-
-
Parameters
Returns boolean
Returns void
setAll
set
All: (index: number, iterable: IIterable<E>) => void
Type declaration
-
- (index: number, iterable: IIterable<E>): void
setFirst
setFirst: (value: E) => void
setLast
setLast: (value: E) => void
setLength
setLength: (newLength: number) => void
Type declaration
-
- (newLength: number): void
setRange
set
Range: (start: number, end: number, iterable: IIterable<E>, skipCount: number) => void
Type declaration
-
- (start: number, end: number, iterable: IIterable<E>, skipCount: number): void
-
Parameters
-
start: number
-
end: number
-
-
skipCount: number
Returns void
shuffle
shuffle: (random?: IRandom) => void
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
-
-
Parameters
Returns boolean
-
props: { orElse?: () => undefined | E }
-
Optional orElse?: () => undefined | E
Returns E
skipWhile
skip
While: (test: (value: E) => boolean) => IIterable<E>
Type declaration
-
-
Parameters
-
test: (value: E) => boolean
-
-
Parameters
Returns boolean
sort
sort: (compare?: (a: E, b: E) => number) => void
Type declaration
-
- (compare?: (a: E, b: E) => number): void
-
Parameters
-
Optional compare: (a: E, b: E) => number
-
-
Parameters
Returns number
Returns void
sublist
sublist
: (start
: number, end
?: number) => IList<E>
Type declaration
-
- (start: number, end?: number): IList<E>
-
Parameters
-
start: number
-
Optional end: number
Returns IList<E>
takeWhile
take
While: (test: (value: E) => boolean) => IIterable<E>
Type declaration
-
-
Parameters
-
test: (value: E) => boolean
-
-
Parameters
Returns boolean
toList
to
List: (props: { growable: boolean }) => IList<E>
Type declaration
-
- (props: { growable: boolean }): IList<E>
-
Parameters
-
props: { growable: boolean }
Returns IList<E>
toString
toString: () => string
where
where
: (test
: (element
: E) => boolean) => IIterable<E>
Type declaration
-
- (test: (element: E) => boolean): IIterable<E>
-
Parameters
-
test: (element: E) => boolean
-
-
Parameters
Returns boolean