Properties
add
add: (element: 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, fill?: E) => void
Type declaration
-
- (start: number, end: number, fill?: E): void
-
Parameters
-
start: number
-
end: number
-
Optional fill: 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: (action: (element: E) => void) => void
Type declaration
-
- (action: (element: E) => void): void
-
Parameters
-
action: (element: E) => void
Returns 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: undefined | Object, start: number) => number
Type declaration
-
- (element: undefined | Object, start: number): number
-
Parameters
-
element: undefined | Object
-
start: number
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?: Object, start?: number) => number
Type declaration
-
- (element?: Object, start?: number): number
-
Parameters
-
Optional element: Object
-
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
map
: <T>
(f
: (element
: E) => T) => IIterable<T>
Type declaration
-
-
Type parameters
Parameters
reduce
reduce: (combine: (previousValue: E, element: E) => E) => E
Type declaration
-
- (combine: (previousValue: E, element: E) => E): E
-
Parameters
-
combine: (previousValue: E, element: E) => E
-
- (previousValue: E, element: E): E
-
Parameters
-
previousValue: E
-
element: E
Returns E
Returns E
remove
remove: (element?: Object) => boolean
Type declaration
-
- (element?: 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, newContents: IIterable<E>) => void
Type declaration
-
- (start: number, end: number, newContents: 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: (element: E) => boolean) => IIterable<E>
Type declaration
-
- (test: (element: E) => boolean): IIterable<E>
-
Parameters
-
test: (element: 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: (element: E) => boolean) => IIterable<E>
Type declaration
-
- (test: (element: E) => boolean): IIterable<E>
-
Parameters
-
test: (element: 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