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