-
Notifications
You must be signed in to change notification settings - Fork 0
@ralphschuler.better set.BetterSet
@ralphschuler/better-set.BetterSet
A better Set class with more methods.
Name | Description |
---|---|
v |
The type of the values. |
-
Set
<v
>↳
BetterSet
• new BetterSet<v
>(values?
): BetterSet
<v
>
Name |
---|
v |
Name | Type |
---|---|
values? |
null | readonly v [] |
BetterSet
<v
>
Set<v>.constructor
node_modules/typescript/lib/lib.es2015.collection.d.ts:116
• new BetterSet<v
>(iterable?
): BetterSet
<v
>
Name |
---|
v |
Name | Type |
---|---|
iterable? |
null | Iterable <v > |
BetterSet
<v
>
Set<v>.constructor
node_modules/typescript/lib/lib.es2015.iterable.d.ts:207
• Readonly
[toStringTag]: string
Set.[toStringTag]
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:145
• Readonly
size: number
Set.size
node_modules/typescript/lib/lib.es2015.collection.d.ts:112
▪ Static
Readonly
[species]: SetConstructor
Set.[species]
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:322
▸ [iterator](): IterableIterator
<v
>
Iterates over values in the set.
Set.[iterator]
node_modules/typescript/lib/lib.es2015.iterable.d.ts:170
▸ add(value
): BetterSet
<v
>
Appends a new element with a specified value to the end of the Set.
Name | Type |
---|---|
value |
v |
BetterSet
<v
>
Set.add
node_modules/typescript/lib/lib.es2015.collection.d.ts:93
▸ both(set
): Set
<v
>
Maps the set by a predicate.
Name | Type |
---|---|
set |
Set <v > |
Set
<v
>
A new set with the mapped values.
packages/better-set/src/index.ts:56
▸ clear(): void
void
Set.clear
node_modules/typescript/lib/lib.es2015.collection.d.ts:95
▸ delete(value
): boolean
Removes a specified value from the Set.
Name | Type |
---|---|
value |
v |
boolean
Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
Set.delete
node_modules/typescript/lib/lib.es2015.collection.d.ts:100
▸ entries(): IterableIterator
<[v
, v
]>
Returns an iterable of [v,v] pairs for every value v
in the set.
IterableIterator
<[v
, v
]>
Set.entries
node_modules/typescript/lib/lib.es2015.iterable.d.ts:174
▸ except(set
): Set
<v
>
Maps the set by a predicate.
Name | Type |
---|---|
set |
Set <v > |
Set
<v
>
A new set with the mapped values.
packages/better-set/src/index.ts:41
▸ filter(predicate
): BetterSet
<v
>
Filters the set by a predicate.
Name | Type | Description |
---|---|---|
predicate |
(v : v ) => boolean
|
The predicate to filter by. |
BetterSet
<v
>
A new set with the filtered values.
packages/better-set/src/index.ts:13
▸ forEach(callbackfn
, thisArg?
): void
Executes a provided function once per each value in the Set object, in insertion order.
Name | Type |
---|---|
callbackfn |
(value : v , value2 : v , set : Set <v >) => void
|
thisArg? |
any |
void
Set.forEach
node_modules/typescript/lib/lib.es2015.collection.d.ts:104
▸ has(value
): boolean
Name | Type |
---|---|
value |
v |
boolean
a boolean indicating whether an element with the specified value exists in the Set or not.
Set.has
node_modules/typescript/lib/lib.es2015.collection.d.ts:108
▸ keys(): IterableIterator
<v
>
Despite its name, returns an iterable of the values in the set.
Set.keys
node_modules/typescript/lib/lib.es2015.iterable.d.ts:178
▸ merge(set
): void
Maps the set by a predicate.
Name | Type |
---|---|
set |
Set <v > |
void
A new set with the mapped values.
packages/better-set/src/index.ts:28
▸ values(): IterableIterator
<v
>
Returns an iterable of values in the set.
Set.values
node_modules/typescript/lib/lib.es2015.iterable.d.ts:183
- @ralphschuler/ai-function-caller
- index
- types/AIFunction
- types/Message
- @ralphschuler/assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- error
- index
- util
- @ralphschuler/better-map
- @ralphschuler/better-set
- @ralphschuler/binary-serializer
- @ralphschuler/bit-mask
- @ralphschuler/complex-compare
- @ralphschuler/i811n
- @ralphschuler/logger
- Color
- ColorMap
- Logger
- animations/BallonAnimation
- animations/BaseAnimation
- animations/BombAnimation
- animations/BouncingBallAnimation
- animations/ClockAnimation
- animations/DotsAnimation
- animations/HorizontalBarAnimation
- animations/PongAnimation
- animations/ProgressAnimation
- animations/ProgressBarAnimation
- animations/SpinnerAnimation
- animations/VerticalBarAnimation
- enums/LogLevel
- index
- interfaces/IColor
- interfaces/IMessage
- types/ColorName
- types/Colors
- @ralphschuler/lsystem
- @ralphschuler/mixin-class-factory
- @ralphschuler/neuronal-network
- @ralphschuler/parser-combinator
- index
- inputTypes
- parser
- unicode
- @ralphschuler/prom-metrics-decorator
- @ralphschuler/prom-metrics-parser
- @ralphschuler/random
- PseudoRandomItemSelector
- PseudoRandomNumberGenerator
- Seed
- index
- strategies
- strategy
- strategy
- strategy
- strategy
- strategy
- strategy
- types
- type
- type
- type
- @ralphschuler/safe-array
- @ralphschuler/slot-mashine
- @ralphschuler/state-store
- StateStore
- index
- type
- type
- type
- type
- type
- type
- type
- type
- util
- @ralphschuler/stats-tracker
- @ralphschuler/ts-error
- error
- index
- type
- util
- util
- util
- util
- @ralphschuler/webgl-sand-engine
- index
- pixel-renderer
- @ralphschuler/webgl-shader-factory
- "node:stream/consumers"
- "node:stream/promises"
- ChatCompletionSnapshot
- Choice
- Message
- ToolCall
- EventEmitter
- FormData
- OpenAI
- OpenAI
- Audio
- Speech
- Transcriptions
- Translations
- Beta
- Assistants
- Assistant
- AssistantCreateParams
- AssistantUpdateParams
- Files
- Chat
- Threads
- Messages
- Files
- MessageContentImageFile
- MessageContentText
- Text
- FileCitation
- FilePath
- Runs
- RequiredActionFunctionToolCall
- Run
- RequiredAction
- RunCreateParams
- RunSubmitToolOutputsParams
- Steps
- CodeToolCall
- CodeInterpreter
- Image
- FunctionToolCall
- MessageCreationStepDetails
- RunStep
- ThreadCreateAndRunParams
- Thread
- ThreadCreateParams
- Chat
- Completions
- ChatCompletion
- ChatCompletionAssistantMessageParam
- ChatCompletionChunk
- Choice
- Delta
- ToolCall
- ChatCompletionContentPartImage
- ChatCompletionCreateParams
- ChatCompletionMessage
- ChatCompletionMessageToolCall
- ChatCompletionNamedToolChoice
- Completions
- CompletionChoice
- CompletionCreateParams
- Edits
- Edit
- Embeddings
- CreateEmbeddingResponse
- Files
- FineTunes
- FineTune
- FineTuneCreateParams
- FineTuneListEventsParams
- FineTuning
- Jobs
- FineTuningJob
- JobCreateParams
- Images
- Models
- Moderations
- Moderation
- internal
- finished
- pipeline
- "node:stream/consumers"
- "node:stream/promises"
- EventEmitter
- internal
- finished
- pipeline
- Counter
- Gauge
- Histogram
- Summary