Properties
add
add: (value: E) => boolean
Type declaration
-
-
Parameters
Returns boolean
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 ISet<R>
contains
contains: (value?: Object) => boolean
Type declaration
-
- (value?: Object): boolean
-
Parameters
Returns boolean
containsAll
contains
All: (other: IIterable<undefined | Object>) => boolean
Type declaration
-
- (other: IIterable<undefined | Object>): boolean
-
Parameters
Returns boolean
difference
difference
: (other
: ISet<undefined | Object>) => ISet<E>
Type declaration
-
- (other: ISet<undefined | Object>): ISet<E>
-
Parameters
-
other: ISet<undefined | Object>
Returns ISet<E>
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
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
getSingle
getSingle: () => E
intersection
intersection
: (other
: ISet<undefined | Object>) => ISet<E>
Type declaration
-
- (other: ISet<undefined | Object>): ISet<E>
-
Parameters
-
other: ISet<undefined | Object>
Returns ISet<E>
join
join: (separator: string) => string
Type declaration
-
- (separator: string): string
-
Parameters
Returns string
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
lookup
lookup: (object?: Object) => undefined | E
Type declaration
-
- (object?: Object): undefined | E
-
Parameters
Returns undefined | 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
removeAll
remove
All: (elements: IIterable<undefined | Object>) => void
Type declaration
-
- (elements: IIterable<undefined | Object>): 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
retainAll
retain
All: (elements: IIterable<undefined | Object>) => void
Type declaration
-
- (elements: IIterable<undefined | Object>): 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
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
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
union
Type declaration
-
-
Parameters
Returns ISet<E>
where
where
: (test
: (element
: E) => boolean) => IIterable<E>
Type declaration
-
- (test: (element: E) => boolean): IIterable<E>
-
Parameters
-
test: (element: E) => boolean
-
-
Parameters
Returns boolean