effect 4.0.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai-docs/package.json +2 -2
- package/ai-docs/tsconfig.json +2 -1
- package/dist/Array.d.ts +339 -0
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +143 -3
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +88 -0
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +44 -0
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +68 -0
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +36 -0
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +34 -0
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +18 -0
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +9 -0
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +6 -0
- package/dist/Brand.js.map +1 -1
- package/dist/ByteSize.d.ts +86 -0
- package/dist/ByteSize.d.ts.map +1 -1
- package/dist/ByteSize.js +51 -0
- package/dist/ByteSize.js.map +1 -1
- package/dist/Cache.d.ts +38 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +27 -7
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +82 -0
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +60 -0
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +327 -4
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +168 -8
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +11 -0
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +6 -0
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +192 -0
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +78 -0
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +7 -0
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +5 -0
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +10 -0
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +8 -0
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +52 -12
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +55 -5
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +28 -0
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +19 -0
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +22 -0
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +20 -0
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +50 -0
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +24 -3
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +16 -0
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +26 -1
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +38 -5
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +11 -2
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +13 -0
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +5 -0
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +180 -6
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +98 -6
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +51 -0
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +22 -0
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Differ.js +1 -0
- package/dist/Duration.d.ts +96 -6
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +80 -8
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +527 -0
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +240 -5
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +4 -0
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -0
- package/dist/Effectable.js.map +1 -1
- package/dist/Equal.d.ts +8 -0
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +9 -1
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +21 -0
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +16 -0
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +36 -0
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +11 -0
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +49 -8
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +7 -0
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +40 -0
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +27 -0
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +20 -0
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +11 -0
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +21 -0
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +21 -4
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +35 -0
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +19 -0
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +20 -0
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +14 -0
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +59 -2
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +8 -0
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +55 -0
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +28 -0
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +3 -0
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +39 -1
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +30 -0
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +20 -0
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +247 -12
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +149 -28
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +5 -0
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +14 -0
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +12 -0
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +91 -0
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +39 -0
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +17 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +9 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +49 -0
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +19 -0
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +7 -0
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +6 -0
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +127 -0
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +51 -0
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +4 -0
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +3 -0
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +5 -0
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +5 -0
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +16 -0
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +11 -0
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +14 -0
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +10 -0
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +100 -0
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +45 -1
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +7 -0
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +4 -0
- package/dist/LayerMap.js.map +1 -1
- package/dist/LayerRef.d.ts +5 -0
- package/dist/LayerRef.d.ts.map +1 -1
- package/dist/LayerRef.js +3 -0
- package/dist/LayerRef.js.map +1 -1
- package/dist/LogLevel.d.ts +20 -0
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +9 -0
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +25 -0
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +30 -4
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +5 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +9 -1
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +51 -0
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +39 -0
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +59 -0
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +31 -0
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +32 -0
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +16 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +16 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +10 -0
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +20 -0
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +18 -0
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +31 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +17 -0
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +9 -0
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +6 -0
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +4 -0
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +2 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +61 -0
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +31 -0
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +41 -0
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +20 -0
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +134 -0
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +61 -0
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +29 -0
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +24 -0
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +7 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +3 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +24 -0
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +47 -21
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +6 -0
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +4 -0
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +7 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +5 -0
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +8 -0
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +7 -0
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +19 -0
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +8 -1
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +84 -0
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +48 -0
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +5 -0
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +4 -0
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +67 -5
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +60 -8
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +20 -0
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +10 -0
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +60 -0
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +58 -8
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +13 -0
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +9 -0
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +23 -0
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +8 -0
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +6 -0
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +3 -0
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +100 -0
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +43 -0
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +6 -0
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +4 -0
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +8 -0
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +6 -0
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +4 -0
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +3 -0
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +20 -0
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +16 -0
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +21 -0
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +19 -0
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +3 -0
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +4 -0
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +32 -0
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +12 -0
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +42 -0
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +27 -6
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +6 -0
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +6 -0
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +91 -0
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +41 -0
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +9 -0
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +7 -0
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +57 -0
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +32 -0
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +7 -0
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +5 -0
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +969 -2
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +635 -5
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +107 -0
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +81 -1
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +69 -2
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +63 -4
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +33 -0
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +18 -0
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +25 -0
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +26 -0
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +147 -0
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +99 -0
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +53 -0
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +46 -0
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Scope.d.ts +19 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +12 -0
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +34 -0
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +26 -3
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +9 -0
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +6 -0
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +26 -0
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +10 -0
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +125 -1
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +75 -1
- package/dist/Sink.js.map +1 -1
- package/dist/StandardSchema.d.ts +1 -0
- package/dist/StandardSchema.d.ts.map +1 -1
- package/dist/StandardSchema.js +1 -0
- package/dist/Stdio.d.ts +14 -1
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +6 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +569 -11
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +266 -18
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +87 -0
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +61 -0
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +46 -0
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +19 -0
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +65 -0
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +25 -0
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +2 -0
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +2 -0
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +63 -0
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +24 -0
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +3 -0
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js +1 -0
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +8 -0
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +4 -0
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +23 -0
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +12 -0
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +68 -0
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +28 -0
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +38 -0
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +18 -0
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +52 -0
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +23 -0
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +15 -0
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +8 -0
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +83 -0
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +52 -7
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +51 -0
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +29 -4
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +30 -0
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +22 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +25 -0
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +19 -0
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +51 -0
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +30 -0
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +24 -0
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +32 -18
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +14 -0
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +7 -0
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +25 -0
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +29 -13
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +25 -0
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +12 -0
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +36 -0
- package/dist/Types.d.ts.map +1 -1
- package/dist/Types.js +1 -0
- package/dist/UndefinedOr.d.ts +15 -0
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +9 -0
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +15 -0
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +2 -0
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +4 -0
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +1 -0
- package/dist/Utils.js.map +1 -1
- package/dist/Version.d.ts +26 -0
- package/dist/Version.d.ts.map +1 -0
- package/dist/Version.js +36 -0
- package/dist/Version.js.map +1 -0
- package/dist/ai/Chat.js +1 -1
- package/dist/ai/Chat.js.map +1 -1
- package/dist/ai/DecisionModel.d.ts +22 -0
- package/dist/ai/DecisionModel.d.ts.map +1 -1
- package/dist/ai/DecisionModel.js +22 -4
- package/dist/ai/DecisionModel.js.map +1 -1
- package/dist/ai/LanguageModel.d.ts.map +1 -1
- package/dist/ai/LanguageModel.js +14 -13
- package/dist/ai/LanguageModel.js.map +1 -1
- package/dist/ai/McpServer.d.ts +38 -11
- package/dist/ai/McpServer.d.ts.map +1 -1
- package/dist/ai/McpServer.js +276 -190
- package/dist/ai/McpServer.js.map +1 -1
- package/dist/ai/Telemetry.d.ts +49 -41
- package/dist/ai/Telemetry.d.ts.map +1 -1
- package/dist/ai/Telemetry.js +6 -8
- package/dist/ai/Telemetry.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2026_07_28.js +5 -0
- package/dist/ai/internal/mcpProtocol/v2026_07_28.js.map +1 -1
- package/dist/ai/internal/mcpProtocol.js.map +1 -1
- package/dist/ai/internal/mcpRuntime.js +80 -46
- package/dist/ai/internal/mcpRuntime.js.map +1 -1
- package/dist/ai/internal/mcpStatefulRuntime.js +1 -0
- package/dist/ai/internal/mcpStatefulRuntime.js.map +1 -1
- package/dist/cli/CliOutput.d.ts +27 -0
- package/dist/cli/CliOutput.d.ts.map +1 -1
- package/dist/cli/CliOutput.js +33 -10
- package/dist/cli/CliOutput.js.map +1 -1
- package/dist/cli/Command.d.ts.map +1 -1
- package/dist/cli/Command.js +6 -3
- package/dist/cli/Command.js.map +1 -1
- package/dist/cli/Completions.d.ts +3 -3
- package/dist/cli/Completions.d.ts.map +1 -1
- package/dist/cli/Completions.js +8 -5
- package/dist/cli/Completions.js.map +1 -1
- package/dist/cli/GlobalFlag.d.ts +5 -4
- package/dist/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/cli/GlobalFlag.js +3 -3
- package/dist/cli/GlobalFlag.js.map +1 -1
- package/dist/cli/Prompt.d.ts +17 -1
- package/dist/cli/Prompt.d.ts.map +1 -1
- package/dist/cli/Prompt.js +119 -114
- package/dist/cli/Prompt.js.map +1 -1
- package/dist/cli/internal/ansi.d.ts +0 -1
- package/dist/cli/internal/ansi.d.ts.map +1 -1
- package/dist/cli/internal/ansi.js +20 -3
- package/dist/cli/internal/ansi.js.map +1 -1
- package/dist/cli/internal/completions/powershell.d.ts +2 -0
- package/dist/cli/internal/completions/powershell.d.ts.map +1 -0
- package/dist/cli/internal/completions/powershell.js +273 -0
- package/dist/cli/internal/completions/powershell.js.map +1 -0
- package/dist/cli/internal/completions/zsh.js +3 -2
- package/dist/cli/internal/completions/zsh.js.map +1 -1
- package/dist/cli/internal/wizard.d.ts +3 -3
- package/dist/cli/internal/wizard.d.ts.map +1 -1
- package/dist/cli/internal/wizard.js +21 -18
- package/dist/cli/internal/wizard.js.map +1 -1
- package/dist/cluster/ClusterSchema.d.ts +28 -0
- package/dist/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/cluster/ClusterSchema.js +30 -0
- package/dist/cluster/ClusterSchema.js.map +1 -1
- package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/cluster/ClusterWorkflowEngine.js +10 -18
- package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/cluster/K8sHttpClient.js +5 -2
- package/dist/cluster/K8sHttpClient.js.map +1 -1
- package/dist/cluster/MessageStorage.d.ts +18 -3
- package/dist/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/cluster/MessageStorage.js +31 -11
- package/dist/cluster/MessageStorage.js.map +1 -1
- package/dist/cluster/Runners.d.ts.map +1 -1
- package/dist/cluster/Runners.js +8 -2
- package/dist/cluster/Runners.js.map +1 -1
- package/dist/cluster/Sharding.d.ts.map +1 -1
- package/dist/cluster/Sharding.js +181 -62
- package/dist/cluster/Sharding.js.map +1 -1
- package/dist/cluster/SqlMessageStorage.d.ts +59 -19
- package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/cluster/SqlMessageStorage.js +84 -55
- package/dist/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/cluster/SqlRunnerStorage.d.ts +68 -19
- package/dist/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/cluster/SqlRunnerStorage.js +191 -113
- package/dist/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/cluster/internal/entityManager.js +104 -37
- package/dist/cluster/internal/entityManager.js.map +1 -1
- package/dist/encoding/Base64.d.ts +4 -0
- package/dist/encoding/Base64.d.ts.map +1 -1
- package/dist/encoding/Base64.js +4 -0
- package/dist/encoding/Base64.js.map +1 -1
- package/dist/encoding/Base64Url.d.ts +4 -0
- package/dist/encoding/Base64Url.d.ts.map +1 -1
- package/dist/encoding/Base64Url.js +4 -0
- package/dist/encoding/Base64Url.js.map +1 -1
- package/dist/encoding/EncodingError.d.ts +4 -0
- package/dist/encoding/EncodingError.d.ts.map +1 -1
- package/dist/encoding/EncodingError.js +4 -0
- package/dist/encoding/EncodingError.js.map +1 -1
- package/dist/encoding/Hex.d.ts +5 -0
- package/dist/encoding/Hex.d.ts.map +1 -1
- package/dist/encoding/Hex.js +5 -0
- package/dist/encoding/Hex.js.map +1 -1
- package/dist/encoding/Toml.js +2 -2
- package/dist/encoding/Toml.js.map +1 -1
- package/dist/encoding/Yaml.d.ts.map +1 -1
- package/dist/encoding/Yaml.js +6 -4
- package/dist/encoding/Yaml.js.map +1 -1
- package/dist/encoding/index.d.ts +4 -0
- package/dist/encoding/index.d.ts.map +1 -1
- package/dist/encoding/index.js +4 -0
- package/dist/encoding/index.js.map +1 -1
- package/dist/eventlog/SqlEventJournal.js +8 -4
- package/dist/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts +27 -10
- package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/eventlog/SqlEventLogServerUnencrypted.js +49 -7
- package/dist/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/http/FindMyWay/internal/router.js +3 -6
- package/dist/http/FindMyWay/internal/router.js.map +1 -1
- package/dist/http/Headers.d.ts +3 -1
- package/dist/http/Headers.d.ts.map +1 -1
- package/dist/http/Headers.js +4 -2
- package/dist/http/Headers.js.map +1 -1
- package/dist/http/HttpClient.d.ts +15 -0
- package/dist/http/HttpClient.d.ts.map +1 -1
- package/dist/http/HttpClient.js +79 -23
- package/dist/http/HttpClient.js.map +1 -1
- package/dist/http/HttpClientResponse.js +3 -1
- package/dist/http/HttpClientResponse.js.map +1 -1
- package/dist/http/HttpEffect.d.ts +3 -0
- package/dist/http/HttpEffect.d.ts.map +1 -1
- package/dist/http/HttpEffect.js +5 -2
- package/dist/http/HttpEffect.js.map +1 -1
- package/dist/http/HttpMiddleware.d.ts +17 -0
- package/dist/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/http/HttpMiddleware.js +56 -39
- package/dist/http/HttpMiddleware.js.map +1 -1
- package/dist/http/HttpServer.d.ts +1 -1
- package/dist/http/HttpServer.d.ts.map +1 -1
- package/dist/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/http/HttpTraceContext.js +4 -2
- package/dist/http/HttpTraceContext.js.map +1 -1
- package/dist/http/internal/tracing.d.ts +2 -0
- package/dist/http/internal/tracing.d.ts.map +1 -0
- package/dist/http/internal/tracing.js +37 -0
- package/dist/http/internal/tracing.js.map +1 -0
- package/dist/http-api/HttpApiBuilder.js +2 -1
- package/dist/http-api/HttpApiBuilder.js.map +1 -1
- package/dist/http-api/HttpApiClient.d.ts +12 -3
- package/dist/http-api/HttpApiClient.d.ts.map +1 -1
- package/dist/http-api/HttpApiClient.js.map +1 -1
- package/dist/http-api/HttpApiError.d.ts +4 -3
- package/dist/http-api/HttpApiError.d.ts.map +1 -1
- package/dist/http-api/HttpApiError.js +7 -4
- package/dist/http-api/HttpApiError.js.map +1 -1
- package/dist/http-api/HttpApiSecurity.d.ts +8 -8
- package/dist/http-api/HttpApiSecurity.js +8 -8
- package/dist/index.d.ts +155 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +155 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/arbitrary/array.js +3 -3
- package/dist/internal/arbitrary/array.js.map +1 -1
- package/dist/internal/arbitrary/model.js +26 -11
- package/dist/internal/arbitrary/model.js.map +1 -1
- package/dist/internal/arbitrary/runner.js +8 -8
- package/dist/internal/arbitrary/runner.js.map +1 -1
- package/dist/internal/arbitrary/schema.js +4 -5
- package/dist/internal/arbitrary/schema.js.map +1 -1
- package/dist/internal/effect.js +53 -46
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/schedule.js +7 -5
- package/dist/internal/schedule.js.map +1 -1
- package/dist/internal/schema/standardSchema.js +2 -2
- package/dist/internal/schema/standardSchema.js.map +1 -1
- package/dist/internal/version.d.ts +2 -0
- package/dist/internal/version.d.ts.map +1 -0
- package/dist/internal/version.js +3 -0
- package/dist/internal/version.js.map +1 -0
- package/dist/net/AddressResolver.d.ts +145 -0
- package/dist/net/AddressResolver.d.ts.map +1 -0
- package/dist/net/AddressResolver.js +114 -0
- package/dist/net/AddressResolver.js.map +1 -0
- package/dist/net/Dns.d.ts +596 -0
- package/dist/net/Dns.d.ts.map +1 -0
- package/dist/net/Dns.js +549 -0
- package/dist/net/Dns.js.map +1 -0
- package/dist/net/Host.d.ts +320 -0
- package/dist/net/Host.d.ts.map +1 -0
- package/dist/net/Host.js +342 -0
- package/dist/net/Host.js.map +1 -0
- package/dist/net/IpInterface.d.ts +76 -3
- package/dist/net/IpInterface.d.ts.map +1 -1
- package/dist/net/IpInterface.js +53 -4
- package/dist/net/IpInterface.js.map +1 -1
- package/dist/net/IpNetwork.d.ts +82 -8
- package/dist/net/IpNetwork.d.ts.map +1 -1
- package/dist/net/IpNetwork.js +60 -4
- package/dist/net/IpNetwork.js.map +1 -1
- package/dist/net/NetAddress.d.ts +388 -35
- package/dist/net/NetAddress.d.ts.map +1 -1
- package/dist/net/NetAddress.js +350 -34
- package/dist/net/NetAddress.js.map +1 -1
- package/dist/net/index.d.ts +15 -0
- package/dist/net/index.d.ts.map +1 -1
- package/dist/net/index.js +15 -0
- package/dist/net/index.js.map +1 -1
- package/dist/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/observability/OtlpExporter.js +5 -6
- package/dist/observability/OtlpExporter.js.map +1 -1
- package/dist/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/observability/OtlpLogger.js +23 -27
- package/dist/observability/OtlpLogger.js.map +1 -1
- package/dist/observability/OtlpMetrics.d.ts +5 -3
- package/dist/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/observability/OtlpMetrics.js +36 -115
- package/dist/observability/OtlpMetrics.js.map +1 -1
- package/dist/observability/OtlpResource.d.ts +4 -3
- package/dist/observability/OtlpResource.d.ts.map +1 -1
- package/dist/observability/OtlpResource.js +20 -23
- package/dist/observability/OtlpResource.js.map +1 -1
- package/dist/observability/OtlpTracer.d.ts +1 -0
- package/dist/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/observability/OtlpTracer.js +32 -36
- package/dist/observability/OtlpTracer.js.map +1 -1
- package/dist/observability/PrometheusMetrics.js +1 -0
- package/dist/observability/PrometheusMetrics.js.map +1 -1
- package/dist/observability/internal/otlpProtobuf.js +32 -1
- package/dist/observability/internal/otlpProtobuf.js.map +1 -1
- package/dist/persistence/PersistedQueue.d.ts +32 -3
- package/dist/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/persistence/PersistedQueue.js +75 -16
- package/dist/persistence/PersistedQueue.js.map +1 -1
- package/dist/reactivity/AsyncResult.d.ts +1 -1
- package/dist/reactivity/Atom.d.ts +5 -5
- package/dist/reactivity/Atom.d.ts.map +1 -1
- package/dist/reactivity/Atom.js +9 -5
- package/dist/reactivity/Atom.js.map +1 -1
- package/dist/reactivity/AtomHttpApi.d.ts +2 -2
- package/dist/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/reactivity/AtomRegistry.d.ts +8 -0
- package/dist/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/reactivity/AtomRegistry.js.map +1 -1
- package/dist/rpc/RpcClient.d.ts +41 -7
- package/dist/rpc/RpcClient.d.ts.map +1 -1
- package/dist/rpc/RpcClient.js +50 -25
- package/dist/rpc/RpcClient.js.map +1 -1
- package/dist/rpc/RpcServer.d.ts +6 -0
- package/dist/rpc/RpcServer.d.ts.map +1 -1
- package/dist/rpc/RpcServer.js +59 -40
- package/dist/rpc/RpcServer.js.map +1 -1
- package/dist/rpc/internal/tracing.d.ts +2 -0
- package/dist/rpc/internal/tracing.d.ts.map +1 -0
- package/dist/rpc/internal/tracing.js +18 -0
- package/dist/rpc/internal/tracing.js.map +1 -0
- package/dist/schema/SchemaCompiler/runtime.js +9 -1
- package/dist/schema/SchemaCompiler/runtime.js.map +1 -1
- package/dist/socket/DatagramSocket.d.ts +456 -0
- package/dist/socket/DatagramSocket.d.ts.map +1 -0
- package/dist/socket/DatagramSocket.js +535 -0
- package/dist/socket/DatagramSocket.js.map +1 -0
- package/dist/socket/Socket.d.ts +14 -1
- package/dist/socket/Socket.d.ts.map +1 -1
- package/dist/socket/Socket.js +9 -1
- package/dist/socket/Socket.js.map +1 -1
- package/dist/socket/index.d.ts +5 -0
- package/dist/socket/index.d.ts.map +1 -1
- package/dist/socket/index.js +5 -0
- package/dist/socket/index.js.map +1 -1
- package/dist/sql/Migrator.d.ts.map +1 -1
- package/dist/sql/Migrator.js +7 -2
- package/dist/sql/Migrator.js.map +1 -1
- package/dist/sql/SqlClient.d.ts +7 -1
- package/dist/sql/SqlClient.d.ts.map +1 -1
- package/dist/sql/SqlClient.js +35 -10
- package/dist/sql/SqlClient.js.map +1 -1
- package/dist/sql/Statement.d.ts +21 -1
- package/dist/sql/Statement.d.ts.map +1 -1
- package/dist/sql/Statement.js +55 -7
- package/dist/sql/Statement.js.map +1 -1
- package/dist/testing/TestClock.d.ts +8 -0
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +7 -0
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +7 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +6 -0
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestCrypto.d.ts +73 -0
- package/dist/testing/TestCrypto.d.ts.map +1 -0
- package/dist/testing/TestCrypto.js +87 -0
- package/dist/testing/TestCrypto.js.map +1 -0
- package/dist/testing/index.d.ts +8 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +8 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/workflow/DurableDeferred.d.ts +54 -0
- package/dist/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/workflow/DurableDeferred.js +78 -49
- package/dist/workflow/DurableDeferred.js.map +1 -1
- package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/workflow/WorkflowEngine.js +2 -1
- package/dist/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +3 -3
- package/src/Array.ts +351 -3
- package/src/BigDecimal.ts +88 -0
- package/src/BigInt.ts +68 -0
- package/src/Boolean.ts +34 -0
- package/src/Brand.ts +10 -0
- package/src/ByteSize.ts +87 -0
- package/src/Cache.ts +50 -8
- package/src/Cause.ts +82 -0
- package/src/Channel.ts +368 -18
- package/src/ChannelSchema.ts +13 -0
- package/src/Chunk.ts +193 -0
- package/src/Clock.ts +7 -0
- package/src/Combiner.ts +10 -0
- package/src/Config.ts +82 -8
- package/src/ConfigProvider.ts +28 -0
- package/src/Console.ts +26 -0
- package/src/Context.ts +53 -3
- package/src/Cron.ts +32 -1
- package/src/Crypto.ts +48 -9
- package/src/Data.ts +13 -0
- package/src/DateTime.ts +180 -6
- package/src/Deferred.ts +51 -0
- package/src/Differ.ts +2 -0
- package/src/Duration.ts +126 -16
- package/src/Effect.ts +539 -5
- package/src/Effectable.ts +4 -0
- package/src/Equal.ts +12 -1
- package/src/Equivalence.ts +22 -0
- package/src/ErrorReporter.ts +36 -0
- package/src/ExecutionPlan.ts +58 -14
- package/src/Exit.ts +40 -0
- package/src/Fiber.ts +20 -0
- package/src/FiberHandle.ts +29 -4
- package/src/FiberMap.ts +38 -0
- package/src/FiberSet.ts +21 -0
- package/src/FileSystem.ts +64 -2
- package/src/Filter.ts +55 -0
- package/src/Formatter.ts +42 -1
- package/src/Function.ts +30 -0
- package/src/Graph.ts +317 -36
- package/src/HKT.ts +5 -0
- package/src/Hash.ts +15 -0
- package/src/HashMap.ts +91 -0
- package/src/HashRing.ts +18 -0
- package/src/HashSet.ts +53 -0
- package/src/Inspectable.ts +8 -0
- package/src/Iterable.ts +127 -0
- package/src/JsonPatch.ts +5 -0
- package/src/JsonPointer.ts +5 -0
- package/src/JsonSchema.ts +17 -0
- package/src/Latch.ts +14 -0
- package/src/Layer.ts +101 -1
- package/src/LayerMap.ts +7 -0
- package/src/LayerRef.ts +5 -0
- package/src/LogLevel.ts +20 -0
- package/src/Logger.ts +41 -5
- package/src/ManagedRuntime.ts +12 -1
- package/src/Match.ts +52 -0
- package/src/Metric.ts +69 -0
- package/src/MutableHashMap.ts +44 -0
- package/src/MutableHashSet.ts +17 -0
- package/src/MutableList.ts +21 -0
- package/src/MutableRef.ts +32 -0
- package/src/Newtype.ts +9 -0
- package/src/NonEmptyIterable.ts +4 -0
- package/src/Number.ts +61 -0
- package/src/Optic.ts +57 -0
- package/src/Option.ts +134 -0
- package/src/Order.ts +30 -0
- package/src/Ordering.ts +7 -0
- package/src/PartitionedSemaphore.ts +61 -22
- package/src/Path.ts +6 -0
- package/src/Pipeable.ts +7 -0
- package/src/PlatformError.ts +8 -0
- package/src/Pool.ts +20 -1
- package/src/Predicate.ts +85 -0
- package/src/PrimaryKey.ts +5 -0
- package/src/PubSub.ts +90 -9
- package/src/Pull.ts +20 -0
- package/src/Queue.ts +80 -10
- package/src/Random.ts +13 -0
- package/src/RcMap.ts +23 -0
- package/src/RcRef.ts +6 -0
- package/src/Record.ts +100 -0
- package/src/Redactable.ts +6 -0
- package/src/Redacted.ts +8 -0
- package/src/Reducer.ts +4 -0
- package/src/Ref.ts +42 -0
- package/src/References.ts +21 -0
- package/src/RegExp.ts +4 -0
- package/src/Request.ts +32 -0
- package/src/RequestResolver.ts +59 -10
- package/src/Resource.ts +7 -0
- package/src/Result.ts +93 -0
- package/src/Runtime.ts +10 -0
- package/src/Schedule.ts +61 -0
- package/src/Scheduler.ts +7 -0
- package/src/Schema.ts +1168 -9
- package/src/SchemaAST.ts +115 -1
- package/src/SchemaGetter.ts +80 -4
- package/src/SchemaIssue.ts +34 -0
- package/src/SchemaParser.ts +26 -0
- package/src/SchemaRepresentation.ts +148 -0
- package/src/SchemaTransformation.ts +53 -0
- package/src/Scope.ts +19 -0
- package/src/ScopedCache.ts +55 -3
- package/src/ScopedRef.ts +9 -0
- package/src/Semaphore.ts +26 -0
- package/src/Sink.ts +126 -2
- package/src/StandardSchema.ts +1 -0
- package/src/Stdio.ts +16 -2
- package/src/Stream.ts +633 -26
- package/src/String.ts +87 -0
- package/src/Struct.ts +46 -0
- package/src/SubscriptionRef.ts +65 -0
- package/src/Symbol.ts +2 -0
- package/src/SynchronizedRef.ts +63 -0
- package/src/Take.ts +3 -0
- package/src/Terminal.ts +8 -0
- package/src/Tracer.ts +23 -0
- package/src/Trie.ts +68 -0
- package/src/Tuple.ts +38 -0
- package/src/TxChunk.ts +52 -0
- package/src/TxDeferred.ts +15 -0
- package/src/TxHashMap.ts +97 -6
- package/src/TxHashSet.ts +83 -3
- package/src/TxPriorityQueue.ts +34 -2
- package/src/TxPubSub.ts +26 -0
- package/src/TxQueue.ts +51 -0
- package/src/TxReentrantLock.ts +53 -36
- package/src/TxRef.ts +14 -0
- package/src/TxSemaphore.ts +47 -31
- package/src/TxSubscriptionRef.ts +25 -0
- package/src/Types.ts +36 -0
- package/src/UndefinedOr.ts +15 -0
- package/src/Unify.ts +15 -0
- package/src/Utils.ts +4 -0
- package/src/Version.ts +38 -0
- package/src/ai/Chat.ts +1 -1
- package/src/ai/DecisionModel.ts +42 -1
- package/src/ai/LanguageModel.ts +16 -19
- package/src/ai/McpServer.ts +169 -58
- package/src/ai/Telemetry.ts +62 -58
- package/src/ai/internal/mcpProtocol/v2026_07_28.ts +5 -0
- package/src/ai/internal/mcpProtocol.ts +3 -0
- package/src/ai/internal/mcpRuntime.ts +86 -43
- package/src/ai/internal/mcpStatefulRuntime.ts +2 -0
- package/src/cli/CliOutput.ts +33 -16
- package/src/cli/Command.ts +4 -3
- package/src/cli/Completions.ts +9 -6
- package/src/cli/GlobalFlag.ts +19 -11
- package/src/cli/Prompt.ts +159 -149
- package/src/cli/internal/ansi.ts +26 -3
- package/src/cli/internal/completions/powershell.ts +322 -0
- package/src/cli/internal/completions/zsh.ts +4 -2
- package/src/cli/internal/wizard.ts +34 -26
- package/src/cluster/ClusterSchema.ts +32 -0
- package/src/cluster/ClusterWorkflowEngine.ts +13 -24
- package/src/cluster/K8sHttpClient.ts +12 -2
- package/src/cluster/MessageStorage.ts +45 -14
- package/src/cluster/Runners.ts +8 -2
- package/src/cluster/Sharding.ts +207 -49
- package/src/cluster/SqlMessageStorage.ts +118 -84
- package/src/cluster/SqlRunnerStorage.ts +224 -128
- package/src/cluster/internal/entityManager.ts +151 -55
- package/src/encoding/Base64.ts +4 -0
- package/src/encoding/Base64Url.ts +4 -0
- package/src/encoding/EncodingError.ts +5 -0
- package/src/encoding/Hex.ts +5 -0
- package/src/encoding/Toml.ts +2 -2
- package/src/encoding/Yaml.ts +8 -4
- package/src/encoding/index.ts +4 -0
- package/src/eventlog/SqlEventJournal.ts +18 -4
- package/src/eventlog/SqlEventLogServerUnencrypted.ts +282 -235
- package/src/http/FindMyWay/internal/router.ts +4 -7
- package/src/http/Headers.ts +8 -2
- package/src/http/HttpClient.ts +100 -29
- package/src/http/HttpClientResponse.ts +3 -1
- package/src/http/HttpEffect.ts +11 -2
- package/src/http/HttpMiddleware.ts +60 -45
- package/src/http/HttpServer.ts +1 -1
- package/src/http/HttpTraceContext.ts +8 -2
- package/src/http/internal/tracing.ts +52 -0
- package/src/http-api/HttpApiBuilder.ts +5 -1
- package/src/http-api/HttpApiClient.ts +13 -4
- package/src/http-api/HttpApiError.ts +8 -4
- package/src/http-api/HttpApiSecurity.ts +8 -8
- package/src/index.ts +156 -0
- package/src/internal/arbitrary/array.ts +3 -3
- package/src/internal/arbitrary/model.ts +37 -14
- package/src/internal/arbitrary/runner.ts +7 -7
- package/src/internal/arbitrary/schema.ts +4 -3
- package/src/internal/effect.ts +62 -58
- package/src/internal/schedule.ts +23 -17
- package/src/internal/schema/standardSchema.ts +2 -2
- package/src/internal/version.ts +2 -0
- package/src/net/AddressResolver.ts +222 -0
- package/src/net/Dns.ts +1035 -0
- package/src/net/Host.ts +472 -0
- package/src/net/IpInterface.ts +117 -7
- package/src/net/IpNetwork.ts +116 -17
- package/src/net/NetAddress.ts +611 -76
- package/src/net/index.ts +18 -0
- package/src/observability/OtlpExporter.ts +9 -6
- package/src/observability/OtlpLogger.ts +20 -21
- package/src/observability/OtlpMetrics.ts +46 -116
- package/src/observability/OtlpResource.ts +18 -27
- package/src/observability/OtlpTracer.ts +34 -40
- package/src/observability/PrometheusMetrics.ts +1 -0
- package/src/observability/internal/otlpProtobuf.ts +60 -0
- package/src/persistence/PersistedQueue.ts +146 -53
- package/src/reactivity/AsyncResult.ts +1 -1
- package/src/reactivity/Atom.ts +10 -6
- package/src/reactivity/AtomHttpApi.ts +2 -4
- package/src/reactivity/AtomRegistry.ts +7 -0
- package/src/rpc/RpcClient.ts +87 -41
- package/src/rpc/RpcServer.ts +85 -48
- package/src/rpc/internal/tracing.ts +22 -0
- package/src/schema/SchemaCompiler/runtime.ts +4 -1
- package/src/socket/DatagramSocket.ts +919 -0
- package/src/socket/Socket.ts +22 -2
- package/src/socket/index.ts +6 -0
- package/src/sql/Migrator.ts +21 -5
- package/src/sql/SqlClient.ts +43 -19
- package/src/sql/Statement.ts +59 -7
- package/src/testing/TestClock.ts +9 -0
- package/src/testing/TestConsole.ts +8 -0
- package/src/testing/TestCrypto.ts +94 -0
- package/src/testing/index.ts +9 -0
- package/src/workflow/DurableDeferred.ts +123 -48
- package/src/workflow/WorkflowEngine.ts +2 -1
package/src/Array.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* arrays and preserve non-empty array types when the result is guaranteed to
|
|
8
8
|
* contain values.
|
|
9
9
|
*
|
|
10
|
+
* @stability stable
|
|
10
11
|
* @since 2.0.0
|
|
11
12
|
*/
|
|
12
13
|
import * as Equal from "./Equal.ts"
|
|
@@ -45,6 +46,7 @@ import type { NoInfer, TupleOf } from "./Types.ts"
|
|
|
45
46
|
* Array.Array === globalThis.Array // => true
|
|
46
47
|
* ```
|
|
47
48
|
*
|
|
49
|
+
* @stability stable
|
|
48
50
|
* @category constructors
|
|
49
51
|
* @since 4.0.0
|
|
50
52
|
*/
|
|
@@ -53,6 +55,7 @@ export const Array = globalThis.Array
|
|
|
53
55
|
/**
|
|
54
56
|
* Type lambda for `ReadonlyArray`, used for higher-kinded type operations.
|
|
55
57
|
*
|
|
58
|
+
* @stability stable
|
|
56
59
|
* @category utility types
|
|
57
60
|
* @since 2.0.0
|
|
58
61
|
*/
|
|
@@ -82,6 +85,7 @@ export interface ReadonlyArrayTypeLambda extends TypeLambda {
|
|
|
82
85
|
* @see {@link NonEmptyArray} — mutable counterpart
|
|
83
86
|
* @see {@link isReadonlyArrayNonEmpty} — narrow a `ReadonlyArray` to this type
|
|
84
87
|
*
|
|
88
|
+
* @stability stable
|
|
85
89
|
* @category models
|
|
86
90
|
* @since 2.0.0
|
|
87
91
|
*/
|
|
@@ -115,6 +119,7 @@ export type NonEmptyReadonlyArray<A> = readonly [A, ...Array<A>]
|
|
|
115
119
|
* @see {@link NonEmptyReadonlyArray} — readonly counterpart
|
|
116
120
|
* @see {@link isArrayNonEmpty} — narrow an `Array` to this type
|
|
117
121
|
*
|
|
122
|
+
* @stability stable
|
|
118
123
|
* @category models
|
|
119
124
|
* @since 2.0.0
|
|
120
125
|
*/
|
|
@@ -143,6 +148,7 @@ export type NonEmptyArray<A> = [A, ...Array<A>]
|
|
|
143
148
|
* @see {@link of} — create a single-element array
|
|
144
149
|
* @see {@link fromIterable} — create from any iterable
|
|
145
150
|
*
|
|
151
|
+
* @stability stable
|
|
146
152
|
* @category constructors
|
|
147
153
|
* @since 2.0.0
|
|
148
154
|
*/
|
|
@@ -172,6 +178,7 @@ export const make = <Elements extends NonEmptyArray<unknown>>(
|
|
|
172
178
|
*
|
|
173
179
|
* @see {@link makeBy} — create an array by computing each element
|
|
174
180
|
*
|
|
181
|
+
* @stability stable
|
|
175
182
|
* @category constructors
|
|
176
183
|
* @since 2.0.0
|
|
177
184
|
*/
|
|
@@ -201,6 +208,7 @@ export const allocate = <A = never>(n: number): Array<A | undefined> => new Arra
|
|
|
201
208
|
* @see {@link range} — create a range of integers
|
|
202
209
|
* @see {@link replicate} — repeat a single value
|
|
203
210
|
*
|
|
211
|
+
* @stability stable
|
|
204
212
|
* @category constructors
|
|
205
213
|
* @since 2.0.0
|
|
206
214
|
*/
|
|
@@ -229,6 +237,7 @@ export const makeBy: {
|
|
|
229
237
|
* @see {@link range} — create a range of integers
|
|
230
238
|
* @see {@link replicate} — repeat a single value
|
|
231
239
|
*
|
|
240
|
+
* @stability stable
|
|
232
241
|
* @category constructors
|
|
233
242
|
* @since 2.0.0
|
|
234
243
|
*/
|
|
@@ -257,6 +266,7 @@ export const makeBy: {
|
|
|
257
266
|
* @see {@link range} — create a range of integers
|
|
258
267
|
* @see {@link replicate} — repeat a single value
|
|
259
268
|
*
|
|
269
|
+
* @stability stable
|
|
260
270
|
* @category constructors
|
|
261
271
|
* @since 2.0.0
|
|
262
272
|
*/
|
|
@@ -292,6 +302,7 @@ export const makeBy: {
|
|
|
292
302
|
*
|
|
293
303
|
* @see {@link makeBy} — generate values from a function
|
|
294
304
|
*
|
|
305
|
+
* @stability stable
|
|
295
306
|
* @category constructors
|
|
296
307
|
* @since 2.0.0
|
|
297
308
|
*/
|
|
@@ -321,6 +332,7 @@ export const range = (start: number, end: number): NonEmptyArray<number> =>
|
|
|
321
332
|
*
|
|
322
333
|
* @see {@link makeBy} — vary values based on index
|
|
323
334
|
*
|
|
335
|
+
* @stability stable
|
|
324
336
|
* @category constructors
|
|
325
337
|
* @since 2.0.0
|
|
326
338
|
*/
|
|
@@ -348,6 +360,7 @@ export const replicate: {
|
|
|
348
360
|
*
|
|
349
361
|
* @see {@link makeBy} — vary values based on index
|
|
350
362
|
*
|
|
363
|
+
* @stability stable
|
|
351
364
|
* @category constructors
|
|
352
365
|
* @since 2.0.0
|
|
353
366
|
*/
|
|
@@ -375,6 +388,7 @@ export const replicate: {
|
|
|
375
388
|
*
|
|
376
389
|
* @see {@link makeBy} — vary values based on index
|
|
377
390
|
*
|
|
391
|
+
* @stability stable
|
|
378
392
|
* @category constructors
|
|
379
393
|
* @since 2.0.0
|
|
380
394
|
*/
|
|
@@ -405,6 +419,7 @@ export const replicate: {
|
|
|
405
419
|
* @see {@link ensure} — wrap a single value or return an existing array
|
|
406
420
|
* @see {@link copy} — create a shallow copy of an array
|
|
407
421
|
*
|
|
422
|
+
* @stability stable
|
|
408
423
|
* @category constructors
|
|
409
424
|
* @since 2.0.0
|
|
410
425
|
*/
|
|
@@ -437,6 +452,7 @@ export const fromIterable = <A>(collection: Iterable<A>): Array<A> =>
|
|
|
437
452
|
* @see {@link of} — always wrap in a single-element array
|
|
438
453
|
* @see {@link fromIterable} — convert any iterable
|
|
439
454
|
*
|
|
455
|
+
* @stability stable
|
|
440
456
|
* @category constructors
|
|
441
457
|
* @since 3.3.0
|
|
442
458
|
*/
|
|
@@ -466,6 +482,7 @@ export const ensure = <A>(self: ReadonlyArray<A> | A): Array<A> => Array.isArray
|
|
|
466
482
|
* @see {@link Record.toEntries} the equivalent function from the Record module
|
|
467
483
|
* @see {@link Record.fromEntries} to build a record from an array of tuples
|
|
468
484
|
*
|
|
485
|
+
* @stability stable
|
|
469
486
|
* @category converting
|
|
470
487
|
* @since 2.0.0
|
|
471
488
|
*/
|
|
@@ -489,6 +506,7 @@ export const fromRecord: <K extends string, A>(self: Readonly<Record<K, A>>) =>
|
|
|
489
506
|
*
|
|
490
507
|
* @see {@link getSomes} — extract `Some` values from an array of Options
|
|
491
508
|
*
|
|
509
|
+
* @stability stable
|
|
492
510
|
* @category converting
|
|
493
511
|
* @since 2.0.0
|
|
494
512
|
*/
|
|
@@ -523,6 +541,7 @@ export const fromOption: <A>(self: Option.Option<A>) => Array<A> = Option.toArra
|
|
|
523
541
|
* @see {@link matchLeft} — destructures into head + tail
|
|
524
542
|
* @see {@link matchRight} — destructures into init + last
|
|
525
543
|
*
|
|
544
|
+
* @stability stable
|
|
526
545
|
* @category pattern matching
|
|
527
546
|
* @since 2.0.0
|
|
528
547
|
*/
|
|
@@ -556,6 +575,7 @@ export const match: {
|
|
|
556
575
|
* @see {@link matchLeft} — destructures into head + tail
|
|
557
576
|
* @see {@link matchRight} — destructures into init + last
|
|
558
577
|
*
|
|
578
|
+
* @stability stable
|
|
559
579
|
* @category pattern matching
|
|
560
580
|
* @since 2.0.0
|
|
561
581
|
*/
|
|
@@ -594,6 +614,7 @@ export const match: {
|
|
|
594
614
|
* @see {@link matchLeft} — destructures into head + tail
|
|
595
615
|
* @see {@link matchRight} — destructures into init + last
|
|
596
616
|
*
|
|
617
|
+
* @stability stable
|
|
597
618
|
* @category pattern matching
|
|
598
619
|
* @since 2.0.0
|
|
599
620
|
*/
|
|
@@ -642,6 +663,7 @@ export const match: {
|
|
|
642
663
|
* @see {@link match} — receives the full non-empty array
|
|
643
664
|
* @see {@link matchRight} — destructures into init + last
|
|
644
665
|
*
|
|
666
|
+
* @stability stable
|
|
645
667
|
* @category pattern matching
|
|
646
668
|
* @since 2.0.0
|
|
647
669
|
*/
|
|
@@ -676,6 +698,7 @@ export const matchLeft: {
|
|
|
676
698
|
* @see {@link match} — receives the full non-empty array
|
|
677
699
|
* @see {@link matchRight} — destructures into init + last
|
|
678
700
|
*
|
|
701
|
+
* @stability stable
|
|
679
702
|
* @category pattern matching
|
|
680
703
|
* @since 2.0.0
|
|
681
704
|
*/
|
|
@@ -715,6 +738,7 @@ export const matchLeft: {
|
|
|
715
738
|
* @see {@link match} — receives the full non-empty array
|
|
716
739
|
* @see {@link matchRight} — destructures into init + last
|
|
717
740
|
*
|
|
741
|
+
* @stability stable
|
|
718
742
|
* @category pattern matching
|
|
719
743
|
* @since 2.0.0
|
|
720
744
|
*/
|
|
@@ -763,6 +787,7 @@ export const matchLeft: {
|
|
|
763
787
|
* @see {@link match} — receives the full non-empty array
|
|
764
788
|
* @see {@link matchLeft} — destructures into head + tail
|
|
765
789
|
*
|
|
790
|
+
* @stability stable
|
|
766
791
|
* @category pattern matching
|
|
767
792
|
* @since 2.0.0
|
|
768
793
|
*/
|
|
@@ -797,6 +822,7 @@ export const matchRight: {
|
|
|
797
822
|
* @see {@link match} — receives the full non-empty array
|
|
798
823
|
* @see {@link matchLeft} — destructures into head + tail
|
|
799
824
|
*
|
|
825
|
+
* @stability stable
|
|
800
826
|
* @category pattern matching
|
|
801
827
|
* @since 2.0.0
|
|
802
828
|
*/
|
|
@@ -836,6 +862,7 @@ export const matchRight: {
|
|
|
836
862
|
* @see {@link match} — receives the full non-empty array
|
|
837
863
|
* @see {@link matchLeft} — destructures into head + tail
|
|
838
864
|
*
|
|
865
|
+
* @stability stable
|
|
839
866
|
* @category pattern matching
|
|
840
867
|
* @since 2.0.0
|
|
841
868
|
*/
|
|
@@ -876,6 +903,7 @@ export const matchRight: {
|
|
|
876
903
|
* @see {@link append} — add to the end
|
|
877
904
|
* @see {@link prependAll} — prepend multiple elements
|
|
878
905
|
*
|
|
906
|
+
* @stability stable
|
|
879
907
|
* @category combining
|
|
880
908
|
* @since 2.0.0
|
|
881
909
|
*/
|
|
@@ -899,6 +927,7 @@ export const prepend: {
|
|
|
899
927
|
* @see {@link append} — add to the end
|
|
900
928
|
* @see {@link prependAll} — prepend multiple elements
|
|
901
929
|
*
|
|
930
|
+
* @stability stable
|
|
902
931
|
* @category combining
|
|
903
932
|
* @since 2.0.0
|
|
904
933
|
*/
|
|
@@ -922,6 +951,7 @@ export const prepend: {
|
|
|
922
951
|
* @see {@link append} — add to the end
|
|
923
952
|
* @see {@link prependAll} — prepend multiple elements
|
|
924
953
|
*
|
|
954
|
+
* @stability stable
|
|
925
955
|
* @category combining
|
|
926
956
|
* @since 2.0.0
|
|
927
957
|
*/
|
|
@@ -950,6 +980,7 @@ export const prepend: {
|
|
|
950
980
|
* @see {@link prepend} — add a single element to the front
|
|
951
981
|
* @see {@link appendAll} — add elements to the end
|
|
952
982
|
*
|
|
983
|
+
* @stability stable
|
|
953
984
|
* @category combining
|
|
954
985
|
* @since 2.0.0
|
|
955
986
|
*/
|
|
@@ -976,6 +1007,7 @@ export const prependAll: {
|
|
|
976
1007
|
* @see {@link prepend} — add a single element to the front
|
|
977
1008
|
* @see {@link appendAll} — add elements to the end
|
|
978
1009
|
*
|
|
1010
|
+
* @stability stable
|
|
979
1011
|
* @category combining
|
|
980
1012
|
* @since 2.0.0
|
|
981
1013
|
*/
|
|
@@ -1002,6 +1034,7 @@ export const prependAll: {
|
|
|
1002
1034
|
* @see {@link prepend} — add a single element to the front
|
|
1003
1035
|
* @see {@link appendAll} — add elements to the end
|
|
1004
1036
|
*
|
|
1037
|
+
* @stability stable
|
|
1005
1038
|
* @category combining
|
|
1006
1039
|
* @since 2.0.0
|
|
1007
1040
|
*/
|
|
@@ -1028,6 +1061,7 @@ export const prependAll: {
|
|
|
1028
1061
|
* @see {@link prepend} — add a single element to the front
|
|
1029
1062
|
* @see {@link appendAll} — add elements to the end
|
|
1030
1063
|
*
|
|
1064
|
+
* @stability stable
|
|
1031
1065
|
* @category combining
|
|
1032
1066
|
* @since 2.0.0
|
|
1033
1067
|
*/
|
|
@@ -1054,6 +1088,7 @@ export const prependAll: {
|
|
|
1054
1088
|
* @see {@link prepend} — add a single element to the front
|
|
1055
1089
|
* @see {@link appendAll} — add elements to the end
|
|
1056
1090
|
*
|
|
1091
|
+
* @stability stable
|
|
1057
1092
|
* @category combining
|
|
1058
1093
|
* @since 2.0.0
|
|
1059
1094
|
*/
|
|
@@ -1082,6 +1117,7 @@ export const prependAll: {
|
|
|
1082
1117
|
* @see {@link prepend} — add to the front
|
|
1083
1118
|
* @see {@link appendAll} — append multiple elements
|
|
1084
1119
|
*
|
|
1120
|
+
* @stability stable
|
|
1085
1121
|
* @category combining
|
|
1086
1122
|
* @since 2.0.0
|
|
1087
1123
|
*/
|
|
@@ -1105,6 +1141,7 @@ export const append: {
|
|
|
1105
1141
|
* @see {@link prepend} — add to the front
|
|
1106
1142
|
* @see {@link appendAll} — append multiple elements
|
|
1107
1143
|
*
|
|
1144
|
+
* @stability stable
|
|
1108
1145
|
* @category combining
|
|
1109
1146
|
* @since 2.0.0
|
|
1110
1147
|
*/
|
|
@@ -1128,6 +1165,7 @@ export const append: {
|
|
|
1128
1165
|
* @see {@link prepend} — add to the front
|
|
1129
1166
|
* @see {@link appendAll} — append multiple elements
|
|
1130
1167
|
*
|
|
1168
|
+
* @stability stable
|
|
1131
1169
|
* @category combining
|
|
1132
1170
|
* @since 2.0.0
|
|
1133
1171
|
*/
|
|
@@ -1157,6 +1195,7 @@ export const append: {
|
|
|
1157
1195
|
* @see {@link append} — add a single element to the end
|
|
1158
1196
|
* @see {@link prependAll} — add elements to the front
|
|
1159
1197
|
*
|
|
1198
|
+
* @stability stable
|
|
1160
1199
|
* @category combining
|
|
1161
1200
|
* @since 2.0.0
|
|
1162
1201
|
*/
|
|
@@ -1184,6 +1223,7 @@ export const appendAll: {
|
|
|
1184
1223
|
* @see {@link append} — add a single element to the end
|
|
1185
1224
|
* @see {@link prependAll} — add elements to the front
|
|
1186
1225
|
*
|
|
1226
|
+
* @stability stable
|
|
1187
1227
|
* @category combining
|
|
1188
1228
|
* @since 2.0.0
|
|
1189
1229
|
*/
|
|
@@ -1211,6 +1251,7 @@ export const appendAll: {
|
|
|
1211
1251
|
* @see {@link append} — add a single element to the end
|
|
1212
1252
|
* @see {@link prependAll} — add elements to the front
|
|
1213
1253
|
*
|
|
1254
|
+
* @stability stable
|
|
1214
1255
|
* @category combining
|
|
1215
1256
|
* @since 2.0.0
|
|
1216
1257
|
*/
|
|
@@ -1238,6 +1279,7 @@ export const appendAll: {
|
|
|
1238
1279
|
* @see {@link append} — add a single element to the end
|
|
1239
1280
|
* @see {@link prependAll} — add elements to the front
|
|
1240
1281
|
*
|
|
1282
|
+
* @stability stable
|
|
1241
1283
|
* @category combining
|
|
1242
1284
|
* @since 2.0.0
|
|
1243
1285
|
*/
|
|
@@ -1265,6 +1307,7 @@ export const appendAll: {
|
|
|
1265
1307
|
* @see {@link append} — add a single element to the end
|
|
1266
1308
|
* @see {@link prependAll} — add elements to the front
|
|
1267
1309
|
*
|
|
1310
|
+
* @stability stable
|
|
1268
1311
|
* @category combining
|
|
1269
1312
|
* @since 2.0.0
|
|
1270
1313
|
*/
|
|
@@ -1298,6 +1341,7 @@ export const appendAll: {
|
|
|
1298
1341
|
* @see {@link scanRight} — right-to-left scan
|
|
1299
1342
|
* @see {@link reduce} — fold without intermediate values
|
|
1300
1343
|
*
|
|
1344
|
+
* @stability stable
|
|
1301
1345
|
* @category folding
|
|
1302
1346
|
* @since 2.0.0
|
|
1303
1347
|
*/
|
|
@@ -1326,6 +1370,7 @@ export const scan: {
|
|
|
1326
1370
|
* @see {@link scanRight} — right-to-left scan
|
|
1327
1371
|
* @see {@link reduce} — fold without intermediate values
|
|
1328
1372
|
*
|
|
1373
|
+
* @stability stable
|
|
1329
1374
|
* @category folding
|
|
1330
1375
|
* @since 2.0.0
|
|
1331
1376
|
*/
|
|
@@ -1354,6 +1399,7 @@ export const scan: {
|
|
|
1354
1399
|
* @see {@link scanRight} — right-to-left scan
|
|
1355
1400
|
* @see {@link reduce} — fold without intermediate values
|
|
1356
1401
|
*
|
|
1402
|
+
* @stability stable
|
|
1357
1403
|
* @category folding
|
|
1358
1404
|
* @since 2.0.0
|
|
1359
1405
|
*/
|
|
@@ -1392,6 +1438,7 @@ export const scan: {
|
|
|
1392
1438
|
* @see {@link scan} — left-to-right scan
|
|
1393
1439
|
* @see {@link reduceRight} — fold without intermediate values
|
|
1394
1440
|
*
|
|
1441
|
+
* @stability stable
|
|
1395
1442
|
* @category folding
|
|
1396
1443
|
* @since 2.0.0
|
|
1397
1444
|
*/
|
|
@@ -1420,6 +1467,7 @@ export const scanRight: {
|
|
|
1420
1467
|
* @see {@link scan} — left-to-right scan
|
|
1421
1468
|
* @see {@link reduceRight} — fold without intermediate values
|
|
1422
1469
|
*
|
|
1470
|
+
* @stability stable
|
|
1423
1471
|
* @category folding
|
|
1424
1472
|
* @since 2.0.0
|
|
1425
1473
|
*/
|
|
@@ -1448,6 +1496,7 @@ export const scanRight: {
|
|
|
1448
1496
|
* @see {@link scan} — left-to-right scan
|
|
1449
1497
|
* @see {@link reduceRight} — fold without intermediate values
|
|
1450
1498
|
*
|
|
1499
|
+
* @stability stable
|
|
1451
1500
|
* @category folding
|
|
1452
1501
|
* @since 2.0.0
|
|
1453
1502
|
*/
|
|
@@ -1486,6 +1535,7 @@ export const scanRight: {
|
|
|
1486
1535
|
* @see {@link isArrayEmpty} — check for an empty array
|
|
1487
1536
|
* @see {@link isArrayNonEmpty} — check for a non-empty array
|
|
1488
1537
|
*
|
|
1538
|
+
* @stability stable
|
|
1489
1539
|
* @category guards
|
|
1490
1540
|
* @since 2.0.0
|
|
1491
1541
|
*/
|
|
@@ -1514,6 +1564,7 @@ export const isArray: {
|
|
|
1514
1564
|
* @see {@link isArrayEmpty} — check for an empty array
|
|
1515
1565
|
* @see {@link isArrayNonEmpty} — check for a non-empty array
|
|
1516
1566
|
*
|
|
1567
|
+
* @stability stable
|
|
1517
1568
|
* @category guards
|
|
1518
1569
|
* @since 2.0.0
|
|
1519
1570
|
*/
|
|
@@ -1542,6 +1593,7 @@ export const isArray: {
|
|
|
1542
1593
|
* @see {@link isArrayEmpty} — check for an empty array
|
|
1543
1594
|
* @see {@link isArrayNonEmpty} — check for a non-empty array
|
|
1544
1595
|
*
|
|
1596
|
+
* @stability stable
|
|
1545
1597
|
* @category guards
|
|
1546
1598
|
* @since 2.0.0
|
|
1547
1599
|
*/
|
|
@@ -1563,6 +1615,7 @@ export const isArray: {
|
|
|
1563
1615
|
* @see {@link isReadonlyArrayEmpty} — readonly variant
|
|
1564
1616
|
* @see {@link isArrayNonEmpty} — opposite check
|
|
1565
1617
|
*
|
|
1618
|
+
* @stability stable
|
|
1566
1619
|
* @category guards
|
|
1567
1620
|
* @since 4.0.0
|
|
1568
1621
|
*/
|
|
@@ -1583,6 +1636,7 @@ export const isArrayEmpty = <A>(self: Array<A>): self is [] => self.length === 0
|
|
|
1583
1636
|
* @see {@link isArrayEmpty} — mutable variant
|
|
1584
1637
|
* @see {@link isReadonlyArrayNonEmpty} — opposite check
|
|
1585
1638
|
*
|
|
1639
|
+
* @stability stable
|
|
1586
1640
|
* @category guards
|
|
1587
1641
|
* @since 4.0.0
|
|
1588
1642
|
*/
|
|
@@ -1609,6 +1663,7 @@ export const isReadonlyArrayEmpty: <A>(self: ReadonlyArray<A>) => self is readon
|
|
|
1609
1663
|
* @see {@link isReadonlyArrayNonEmpty} — readonly variant
|
|
1610
1664
|
* @see {@link isArrayEmpty} — opposite check
|
|
1611
1665
|
*
|
|
1666
|
+
* @stability stable
|
|
1612
1667
|
* @category guards
|
|
1613
1668
|
* @since 4.0.0
|
|
1614
1669
|
*/
|
|
@@ -1635,6 +1690,7 @@ export const isArrayNonEmpty: <A>(self: Array<A>) => self is NonEmptyArray<A> =
|
|
|
1635
1690
|
* @see {@link isArrayNonEmpty} — mutable variant
|
|
1636
1691
|
* @see {@link isReadonlyArrayEmpty} — opposite check
|
|
1637
1692
|
*
|
|
1693
|
+
* @stability stable
|
|
1638
1694
|
* @category guards
|
|
1639
1695
|
* @since 4.0.0
|
|
1640
1696
|
*/
|
|
@@ -1656,6 +1712,7 @@ export const isReadonlyArrayNonEmpty: <A>(self: ReadonlyArray<A>) => self is Non
|
|
|
1656
1712
|
* Array.length([1, 2, 3]) // => 3
|
|
1657
1713
|
* ```
|
|
1658
1714
|
*
|
|
1715
|
+
* @stability stable
|
|
1659
1716
|
* @category getters
|
|
1660
1717
|
* @since 2.0.0
|
|
1661
1718
|
*/
|
|
@@ -1704,6 +1761,7 @@ export function isOutOfBounds<A>(i: number, as: ReadonlyArray<A>): boolean {
|
|
|
1704
1761
|
* @see {@link head} for reading the first element as an `Option`
|
|
1705
1762
|
* @see {@link last} for reading the last element as an `Option`
|
|
1706
1763
|
*
|
|
1764
|
+
* @stability stable
|
|
1707
1765
|
* @category getters
|
|
1708
1766
|
* @since 2.0.0
|
|
1709
1767
|
*/
|
|
@@ -1734,6 +1792,7 @@ export const get: {
|
|
|
1734
1792
|
* @see {@link head} for reading the first element as an `Option`
|
|
1735
1793
|
* @see {@link last} for reading the last element as an `Option`
|
|
1736
1794
|
*
|
|
1795
|
+
* @stability stable
|
|
1737
1796
|
* @category getters
|
|
1738
1797
|
* @since 2.0.0
|
|
1739
1798
|
*/
|
|
@@ -1764,6 +1823,7 @@ export const get: {
|
|
|
1764
1823
|
* @see {@link head} for reading the first element as an `Option`
|
|
1765
1824
|
* @see {@link last} for reading the last element as an `Option`
|
|
1766
1825
|
*
|
|
1826
|
+
* @stability stable
|
|
1767
1827
|
* @category getters
|
|
1768
1828
|
* @since 2.0.0
|
|
1769
1829
|
*/
|
|
@@ -1797,6 +1857,7 @@ export const get: {
|
|
|
1797
1857
|
*
|
|
1798
1858
|
* @see {@link get} — safe version returning `Option`
|
|
1799
1859
|
*
|
|
1860
|
+
* @stability stable
|
|
1800
1861
|
* @category unsafe
|
|
1801
1862
|
* @since 4.0.0
|
|
1802
1863
|
*/
|
|
@@ -1825,6 +1886,7 @@ export const getUnsafe: {
|
|
|
1825
1886
|
*
|
|
1826
1887
|
* @see {@link get} — safe version returning `Option`
|
|
1827
1888
|
*
|
|
1889
|
+
* @stability stable
|
|
1828
1890
|
* @category unsafe
|
|
1829
1891
|
* @since 4.0.0
|
|
1830
1892
|
*/
|
|
@@ -1853,6 +1915,7 @@ export const getUnsafe: {
|
|
|
1853
1915
|
*
|
|
1854
1916
|
* @see {@link get} — safe version returning `Option`
|
|
1855
1917
|
*
|
|
1918
|
+
* @stability stable
|
|
1856
1919
|
* @category unsafe
|
|
1857
1920
|
* @since 4.0.0
|
|
1858
1921
|
*/
|
|
@@ -1889,6 +1952,7 @@ export const getUnsafe: {
|
|
|
1889
1952
|
* @see {@link headNonEmpty} for getting only the first element
|
|
1890
1953
|
* @see {@link tailNonEmpty} for getting only the elements after the first
|
|
1891
1954
|
*
|
|
1955
|
+
* @stability stable
|
|
1892
1956
|
* @category splitting
|
|
1893
1957
|
* @since 2.0.0
|
|
1894
1958
|
*/
|
|
@@ -1921,6 +1985,7 @@ export const unprepend = <A>(
|
|
|
1921
1985
|
* @see {@link initNonEmpty} for getting only the elements before the last
|
|
1922
1986
|
* @see {@link lastNonEmpty} for getting only the last element
|
|
1923
1987
|
*
|
|
1988
|
+
* @stability stable
|
|
1924
1989
|
* @category splitting
|
|
1925
1990
|
* @since 2.0.0
|
|
1926
1991
|
*/
|
|
@@ -1948,6 +2013,7 @@ export const unappend = <A>(
|
|
|
1948
2013
|
* @see {@link headNonEmpty} — direct access when array is known non-empty
|
|
1949
2014
|
* @see {@link last} — get the last element
|
|
1950
2015
|
*
|
|
2016
|
+
* @stability stable
|
|
1951
2017
|
* @category getters
|
|
1952
2018
|
* @since 2.0.0
|
|
1953
2019
|
*/
|
|
@@ -1972,6 +2038,7 @@ export const head: <A>(self: ReadonlyArray<A>) => Option.Option<A> = get(0)
|
|
|
1972
2038
|
*
|
|
1973
2039
|
* @see {@link head} — safe version for possibly-empty arrays
|
|
1974
2040
|
*
|
|
2041
|
+
* @stability stable
|
|
1975
2042
|
* @category getters
|
|
1976
2043
|
* @since 2.0.0
|
|
1977
2044
|
*/
|
|
@@ -1997,6 +2064,7 @@ export const headNonEmpty: <A>(self: NonEmptyReadonlyArray<A>) => A = getUnsafe(
|
|
|
1997
2064
|
* @see {@link lastNonEmpty} — direct access when array is known non-empty
|
|
1998
2065
|
* @see {@link head} — get the first element
|
|
1999
2066
|
*
|
|
2067
|
+
* @stability stable
|
|
2000
2068
|
* @category getters
|
|
2001
2069
|
* @since 2.0.0
|
|
2002
2070
|
*/
|
|
@@ -2022,6 +2090,7 @@ export const last = <A>(self: ReadonlyArray<A>): Option.Option<A> =>
|
|
|
2022
2090
|
*
|
|
2023
2091
|
* @see {@link last} — safe version for possibly-empty arrays
|
|
2024
2092
|
*
|
|
2093
|
+
* @stability stable
|
|
2025
2094
|
* @category getters
|
|
2026
2095
|
* @since 2.0.0
|
|
2027
2096
|
*/
|
|
@@ -2050,6 +2119,7 @@ export const lastNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): A => self[self.
|
|
|
2050
2119
|
* @see {@link tailNonEmpty} — when the array is known non-empty
|
|
2051
2120
|
* @see {@link init} — all elements except the last
|
|
2052
2121
|
*
|
|
2122
|
+
* @stability stable
|
|
2053
2123
|
* @category getters
|
|
2054
2124
|
* @since 2.0.0
|
|
2055
2125
|
*/
|
|
@@ -2076,6 +2146,7 @@ export function tail<A>(self: Iterable<A>): Option.Option<Array<A>> {
|
|
|
2076
2146
|
* @see {@link tail} — safe version for possibly-empty arrays
|
|
2077
2147
|
* @see {@link initNonEmpty} — all elements except the last
|
|
2078
2148
|
*
|
|
2149
|
+
* @stability stable
|
|
2079
2150
|
* @category getters
|
|
2080
2151
|
* @since 2.0.0
|
|
2081
2152
|
*/
|
|
@@ -2105,6 +2176,7 @@ export const tailNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): Array<A> => sel
|
|
|
2105
2176
|
* @see {@link initNonEmpty} — when the array is known non-empty
|
|
2106
2177
|
* @see {@link tail} — all elements except the first
|
|
2107
2178
|
*
|
|
2179
|
+
* @stability stable
|
|
2108
2180
|
* @category getters
|
|
2109
2181
|
* @since 2.0.0
|
|
2110
2182
|
*/
|
|
@@ -2131,6 +2203,7 @@ export function init<A>(self: Iterable<A>): Option.Option<Array<A>> {
|
|
|
2131
2203
|
* @see {@link init} — safe version for possibly-empty arrays
|
|
2132
2204
|
* @see {@link tailNonEmpty} — all elements except the first
|
|
2133
2205
|
*
|
|
2206
|
+
* @stability stable
|
|
2134
2207
|
* @category getters
|
|
2135
2208
|
* @since 2.0.0
|
|
2136
2209
|
*/
|
|
@@ -2162,6 +2235,7 @@ const clampCount = (n: number, length: number): number => Math.min(Count.normali
|
|
|
2162
2235
|
* @see {@link takeWhile} for keeping an initial prefix while a predicate holds
|
|
2163
2236
|
* @see {@link drop} for removing elements from the start
|
|
2164
2237
|
*
|
|
2238
|
+
* @stability stable
|
|
2165
2239
|
* @category getters
|
|
2166
2240
|
* @since 2.0.0
|
|
2167
2241
|
*/
|
|
@@ -2190,6 +2264,7 @@ export const take: {
|
|
|
2190
2264
|
* @see {@link takeWhile} for keeping an initial prefix while a predicate holds
|
|
2191
2265
|
* @see {@link drop} for removing elements from the start
|
|
2192
2266
|
*
|
|
2267
|
+
* @stability stable
|
|
2193
2268
|
* @category getters
|
|
2194
2269
|
* @since 2.0.0
|
|
2195
2270
|
*/
|
|
@@ -2218,6 +2293,7 @@ export const take: {
|
|
|
2218
2293
|
* @see {@link takeWhile} for keeping an initial prefix while a predicate holds
|
|
2219
2294
|
* @see {@link drop} for removing elements from the start
|
|
2220
2295
|
*
|
|
2296
|
+
* @stability stable
|
|
2221
2297
|
* @category getters
|
|
2222
2298
|
* @since 2.0.0
|
|
2223
2299
|
*/
|
|
@@ -2250,6 +2326,7 @@ export const take: {
|
|
|
2250
2326
|
* @see {@link take} — keep from the start
|
|
2251
2327
|
* @see {@link dropRight} — remove from the end
|
|
2252
2328
|
*
|
|
2329
|
+
* @stability stable
|
|
2253
2330
|
* @category getters
|
|
2254
2331
|
* @since 2.0.0
|
|
2255
2332
|
*/
|
|
@@ -2277,6 +2354,7 @@ export const takeRight: {
|
|
|
2277
2354
|
* @see {@link take} — keep from the start
|
|
2278
2355
|
* @see {@link dropRight} — remove from the end
|
|
2279
2356
|
*
|
|
2357
|
+
* @stability stable
|
|
2280
2358
|
* @category getters
|
|
2281
2359
|
* @since 2.0.0
|
|
2282
2360
|
*/
|
|
@@ -2304,6 +2382,7 @@ export const takeRight: {
|
|
|
2304
2382
|
* @see {@link take} — keep from the start
|
|
2305
2383
|
* @see {@link dropRight} — remove from the end
|
|
2306
2384
|
*
|
|
2385
|
+
* @stability stable
|
|
2307
2386
|
* @category getters
|
|
2308
2387
|
* @since 2.0.0
|
|
2309
2388
|
*/
|
|
@@ -2340,6 +2419,7 @@ export const takeRight: {
|
|
|
2340
2419
|
* @see {@link dropWhile} for removing the matching prefix and keeping the rest
|
|
2341
2420
|
* @see {@link span} for splitting the matching prefix from the remaining elements
|
|
2342
2421
|
*
|
|
2422
|
+
* @stability stable
|
|
2343
2423
|
* @category getters
|
|
2344
2424
|
* @since 2.0.0
|
|
2345
2425
|
*/
|
|
@@ -2370,6 +2450,7 @@ export const takeWhile: {
|
|
|
2370
2450
|
* @see {@link dropWhile} for removing the matching prefix and keeping the rest
|
|
2371
2451
|
* @see {@link span} for splitting the matching prefix from the remaining elements
|
|
2372
2452
|
*
|
|
2453
|
+
* @stability stable
|
|
2373
2454
|
* @category getters
|
|
2374
2455
|
* @since 2.0.0
|
|
2375
2456
|
*/
|
|
@@ -2400,6 +2481,7 @@ export const takeWhile: {
|
|
|
2400
2481
|
* @see {@link dropWhile} for removing the matching prefix and keeping the rest
|
|
2401
2482
|
* @see {@link span} for splitting the matching prefix from the remaining elements
|
|
2402
2483
|
*
|
|
2484
|
+
* @stability stable
|
|
2403
2485
|
* @category getters
|
|
2404
2486
|
* @since 2.0.0
|
|
2405
2487
|
*/
|
|
@@ -2430,6 +2512,7 @@ export const takeWhile: {
|
|
|
2430
2512
|
* @see {@link dropWhile} for removing the matching prefix and keeping the rest
|
|
2431
2513
|
* @see {@link span} for splitting the matching prefix from the remaining elements
|
|
2432
2514
|
*
|
|
2515
|
+
* @stability stable
|
|
2433
2516
|
* @category getters
|
|
2434
2517
|
* @since 2.0.0
|
|
2435
2518
|
*/
|
|
@@ -2460,6 +2543,7 @@ export const takeWhile: {
|
|
|
2460
2543
|
* @see {@link dropWhile} for removing the matching prefix and keeping the rest
|
|
2461
2544
|
* @see {@link span} for splitting the matching prefix from the remaining elements
|
|
2462
2545
|
*
|
|
2546
|
+
* @stability stable
|
|
2463
2547
|
* @category getters
|
|
2464
2548
|
* @since 2.0.0
|
|
2465
2549
|
*/
|
|
@@ -2493,6 +2577,7 @@ export const takeWhile: {
|
|
|
2493
2577
|
*
|
|
2494
2578
|
* @see {@link takeWhile} for taking a prefix based on a boolean predicate
|
|
2495
2579
|
*
|
|
2580
|
+
* @stability stable
|
|
2496
2581
|
* @category getters
|
|
2497
2582
|
* @since 4.0.0
|
|
2498
2583
|
*/
|
|
@@ -2513,6 +2598,7 @@ export const takeWhileFilter: {
|
|
|
2513
2598
|
*
|
|
2514
2599
|
* @see {@link takeWhile} for taking a prefix based on a boolean predicate
|
|
2515
2600
|
*
|
|
2601
|
+
* @stability stable
|
|
2516
2602
|
* @category getters
|
|
2517
2603
|
* @since 4.0.0
|
|
2518
2604
|
*/
|
|
@@ -2533,6 +2619,7 @@ export const takeWhileFilter: {
|
|
|
2533
2619
|
*
|
|
2534
2620
|
* @see {@link takeWhile} for taking a prefix based on a boolean predicate
|
|
2535
2621
|
*
|
|
2622
|
+
* @stability stable
|
|
2536
2623
|
* @category getters
|
|
2537
2624
|
* @since 4.0.0
|
|
2538
2625
|
*/
|
|
@@ -2592,6 +2679,7 @@ const spanIndex = <A>(self: Iterable<A>, predicate: (a: A, i: number) => boolean
|
|
|
2592
2679
|
* @see {@link dropWhile} for keeping only the elements after the matching prefix
|
|
2593
2680
|
* @see {@link splitWhere} for splitting at the first element that satisfies a predicate
|
|
2594
2681
|
*
|
|
2682
|
+
* @stability stable
|
|
2595
2683
|
* @category splitting
|
|
2596
2684
|
* @since 2.0.0
|
|
2597
2685
|
*/
|
|
@@ -2623,6 +2711,7 @@ export const span: {
|
|
|
2623
2711
|
* @see {@link dropWhile} for keeping only the elements after the matching prefix
|
|
2624
2712
|
* @see {@link splitWhere} for splitting at the first element that satisfies a predicate
|
|
2625
2713
|
*
|
|
2714
|
+
* @stability stable
|
|
2626
2715
|
* @category splitting
|
|
2627
2716
|
* @since 2.0.0
|
|
2628
2717
|
*/
|
|
@@ -2654,6 +2743,7 @@ export const span: {
|
|
|
2654
2743
|
* @see {@link dropWhile} for keeping only the elements after the matching prefix
|
|
2655
2744
|
* @see {@link splitWhere} for splitting at the first element that satisfies a predicate
|
|
2656
2745
|
*
|
|
2746
|
+
* @stability stable
|
|
2657
2747
|
* @category splitting
|
|
2658
2748
|
* @since 2.0.0
|
|
2659
2749
|
*/
|
|
@@ -2685,6 +2775,7 @@ export const span: {
|
|
|
2685
2775
|
* @see {@link dropWhile} for keeping only the elements after the matching prefix
|
|
2686
2776
|
* @see {@link splitWhere} for splitting at the first element that satisfies a predicate
|
|
2687
2777
|
*
|
|
2778
|
+
* @stability stable
|
|
2688
2779
|
* @category splitting
|
|
2689
2780
|
* @since 2.0.0
|
|
2690
2781
|
*/
|
|
@@ -2716,6 +2807,7 @@ export const span: {
|
|
|
2716
2807
|
* @see {@link dropWhile} for keeping only the elements after the matching prefix
|
|
2717
2808
|
* @see {@link splitWhere} for splitting at the first element that satisfies a predicate
|
|
2718
2809
|
*
|
|
2810
|
+
* @stability stable
|
|
2719
2811
|
* @category splitting
|
|
2720
2812
|
* @since 2.0.0
|
|
2721
2813
|
*/
|
|
@@ -2753,6 +2845,7 @@ export const span: {
|
|
|
2753
2845
|
* @see {@link dropWhile} for removing a prefix based on a predicate instead of a fixed count
|
|
2754
2846
|
* @see {@link take} for keeping a fixed number of elements from the start
|
|
2755
2847
|
*
|
|
2848
|
+
* @stability stable
|
|
2756
2849
|
* @category getters
|
|
2757
2850
|
* @since 2.0.0
|
|
2758
2851
|
*/
|
|
@@ -2782,6 +2875,7 @@ export const drop: {
|
|
|
2782
2875
|
* @see {@link dropWhile} for removing a prefix based on a predicate instead of a fixed count
|
|
2783
2876
|
* @see {@link take} for keeping a fixed number of elements from the start
|
|
2784
2877
|
*
|
|
2878
|
+
* @stability stable
|
|
2785
2879
|
* @category getters
|
|
2786
2880
|
* @since 2.0.0
|
|
2787
2881
|
*/
|
|
@@ -2811,6 +2905,7 @@ export const drop: {
|
|
|
2811
2905
|
* @see {@link dropWhile} for removing a prefix based on a predicate instead of a fixed count
|
|
2812
2906
|
* @see {@link take} for keeping a fixed number of elements from the start
|
|
2813
2907
|
*
|
|
2908
|
+
* @stability stable
|
|
2814
2909
|
* @category getters
|
|
2815
2910
|
* @since 2.0.0
|
|
2816
2911
|
*/
|
|
@@ -2842,6 +2937,7 @@ export const drop: {
|
|
|
2842
2937
|
* @see {@link drop} — remove from the start
|
|
2843
2938
|
* @see {@link takeRight} — keep from the end
|
|
2844
2939
|
*
|
|
2940
|
+
* @stability stable
|
|
2845
2941
|
* @category getters
|
|
2846
2942
|
* @since 2.0.0
|
|
2847
2943
|
*/
|
|
@@ -2868,6 +2964,7 @@ export const dropRight: {
|
|
|
2868
2964
|
* @see {@link drop} — remove from the start
|
|
2869
2965
|
* @see {@link takeRight} — keep from the end
|
|
2870
2966
|
*
|
|
2967
|
+
* @stability stable
|
|
2871
2968
|
* @category getters
|
|
2872
2969
|
* @since 2.0.0
|
|
2873
2970
|
*/
|
|
@@ -2894,6 +2991,7 @@ export const dropRight: {
|
|
|
2894
2991
|
* @see {@link drop} — remove from the start
|
|
2895
2992
|
* @see {@link takeRight} — keep from the end
|
|
2896
2993
|
*
|
|
2994
|
+
* @stability stable
|
|
2897
2995
|
* @category getters
|
|
2898
2996
|
* @since 2.0.0
|
|
2899
2997
|
*/
|
|
@@ -2925,6 +3023,7 @@ export const dropRight: {
|
|
|
2925
3023
|
* @see {@link takeWhile} — keep the matching prefix instead
|
|
2926
3024
|
* @see {@link drop} — drop a fixed count
|
|
2927
3025
|
*
|
|
3026
|
+
* @stability stable
|
|
2928
3027
|
* @category getters
|
|
2929
3028
|
* @since 2.0.0
|
|
2930
3029
|
*/
|
|
@@ -2951,6 +3050,7 @@ export const dropWhile: {
|
|
|
2951
3050
|
* @see {@link takeWhile} — keep the matching prefix instead
|
|
2952
3051
|
* @see {@link drop} — drop a fixed count
|
|
2953
3052
|
*
|
|
3053
|
+
* @stability stable
|
|
2954
3054
|
* @category getters
|
|
2955
3055
|
* @since 2.0.0
|
|
2956
3056
|
*/
|
|
@@ -2977,6 +3077,7 @@ export const dropWhile: {
|
|
|
2977
3077
|
* @see {@link takeWhile} — keep the matching prefix instead
|
|
2978
3078
|
* @see {@link drop} — drop a fixed count
|
|
2979
3079
|
*
|
|
3080
|
+
* @stability stable
|
|
2980
3081
|
* @category getters
|
|
2981
3082
|
* @since 2.0.0
|
|
2982
3083
|
*/
|
|
@@ -3009,6 +3110,7 @@ export const dropWhile: {
|
|
|
3009
3110
|
* @see {@link dropWhile} for dropping a prefix with a simple boolean predicate
|
|
3010
3111
|
* @see {@link takeWhileFilter} for keeping only the matching prefix
|
|
3011
3112
|
*
|
|
3113
|
+
* @stability stable
|
|
3012
3114
|
* @category getters
|
|
3013
3115
|
* @since 4.0.0
|
|
3014
3116
|
*/
|
|
@@ -3029,6 +3131,7 @@ export const dropWhileFilter: {
|
|
|
3029
3131
|
* @see {@link dropWhile} for dropping a prefix with a simple boolean predicate
|
|
3030
3132
|
* @see {@link takeWhileFilter} for keeping only the matching prefix
|
|
3031
3133
|
*
|
|
3134
|
+
* @stability stable
|
|
3032
3135
|
* @category getters
|
|
3033
3136
|
* @since 4.0.0
|
|
3034
3137
|
*/
|
|
@@ -3049,6 +3152,7 @@ export const dropWhileFilter: {
|
|
|
3049
3152
|
* @see {@link dropWhile} for dropping a prefix with a simple boolean predicate
|
|
3050
3153
|
* @see {@link takeWhileFilter} for keeping only the matching prefix
|
|
3051
3154
|
*
|
|
3155
|
+
* @stability stable
|
|
3052
3156
|
* @category getters
|
|
3053
3157
|
* @since 4.0.0
|
|
3054
3158
|
*/
|
|
@@ -3088,6 +3192,7 @@ export const dropWhileFilter: {
|
|
|
3088
3192
|
* @see {@link findLastIndex} — search from the end
|
|
3089
3193
|
* @see {@link findFirst} — get the element itself
|
|
3090
3194
|
*
|
|
3195
|
+
* @stability stable
|
|
3091
3196
|
* @category searching
|
|
3092
3197
|
* @since 2.0.0
|
|
3093
3198
|
*/
|
|
@@ -3112,6 +3217,7 @@ export const findFirstIndex: {
|
|
|
3112
3217
|
* @see {@link findLastIndex} — search from the end
|
|
3113
3218
|
* @see {@link findFirst} — get the element itself
|
|
3114
3219
|
*
|
|
3220
|
+
* @stability stable
|
|
3115
3221
|
* @category searching
|
|
3116
3222
|
* @since 2.0.0
|
|
3117
3223
|
*/
|
|
@@ -3136,6 +3242,7 @@ export const findFirstIndex: {
|
|
|
3136
3242
|
* @see {@link findLastIndex} — search from the end
|
|
3137
3243
|
* @see {@link findFirst} — get the element itself
|
|
3138
3244
|
*
|
|
3245
|
+
* @stability stable
|
|
3139
3246
|
* @category searching
|
|
3140
3247
|
* @since 2.0.0
|
|
3141
3248
|
*/
|
|
@@ -3170,6 +3277,7 @@ export const findFirstIndex: {
|
|
|
3170
3277
|
* @see {@link findFirstIndex} — search from the start
|
|
3171
3278
|
* @see {@link findLast} — get the element itself
|
|
3172
3279
|
*
|
|
3280
|
+
* @stability stable
|
|
3173
3281
|
* @category searching
|
|
3174
3282
|
* @since 2.0.0
|
|
3175
3283
|
*/
|
|
@@ -3193,6 +3301,7 @@ export const findLastIndex: {
|
|
|
3193
3301
|
* @see {@link findFirstIndex} — search from the start
|
|
3194
3302
|
* @see {@link findLast} — get the element itself
|
|
3195
3303
|
*
|
|
3304
|
+
* @stability stable
|
|
3196
3305
|
* @category searching
|
|
3197
3306
|
* @since 2.0.0
|
|
3198
3307
|
*/
|
|
@@ -3216,6 +3325,7 @@ export const findLastIndex: {
|
|
|
3216
3325
|
* @see {@link findFirstIndex} — search from the start
|
|
3217
3326
|
* @see {@link findLast} — get the element itself
|
|
3218
3327
|
*
|
|
3328
|
+
* @stability stable
|
|
3219
3329
|
* @category searching
|
|
3220
3330
|
* @since 2.0.0
|
|
3221
3331
|
*/
|
|
@@ -3257,6 +3367,7 @@ export const findLastIndex: {
|
|
|
3257
3367
|
* @see {@link findFirstIndex} — get the index instead
|
|
3258
3368
|
* @see {@link findFirstWithIndex} — get both element and index
|
|
3259
3369
|
*
|
|
3370
|
+
* @stability stable
|
|
3260
3371
|
* @category searching
|
|
3261
3372
|
* @since 2.0.0
|
|
3262
3373
|
*/
|
|
@@ -3288,6 +3399,7 @@ export const findFirst: {
|
|
|
3288
3399
|
* @see {@link findFirstIndex} — get the index instead
|
|
3289
3400
|
* @see {@link findFirstWithIndex} — get both element and index
|
|
3290
3401
|
*
|
|
3402
|
+
* @stability stable
|
|
3291
3403
|
* @category searching
|
|
3292
3404
|
* @since 2.0.0
|
|
3293
3405
|
*/
|
|
@@ -3319,6 +3431,7 @@ export const findFirst: {
|
|
|
3319
3431
|
* @see {@link findFirstIndex} — get the index instead
|
|
3320
3432
|
* @see {@link findFirstWithIndex} — get both element and index
|
|
3321
3433
|
*
|
|
3434
|
+
* @stability stable
|
|
3322
3435
|
* @category searching
|
|
3323
3436
|
* @since 2.0.0
|
|
3324
3437
|
*/
|
|
@@ -3350,6 +3463,7 @@ export const findFirst: {
|
|
|
3350
3463
|
* @see {@link findFirstIndex} — get the index instead
|
|
3351
3464
|
* @see {@link findFirstWithIndex} — get both element and index
|
|
3352
3465
|
*
|
|
3466
|
+
* @stability stable
|
|
3353
3467
|
* @category searching
|
|
3354
3468
|
* @since 2.0.0
|
|
3355
3469
|
*/
|
|
@@ -3381,6 +3495,7 @@ export const findFirst: {
|
|
|
3381
3495
|
* @see {@link findFirstIndex} — get the index instead
|
|
3382
3496
|
* @see {@link findFirstWithIndex} — get both element and index
|
|
3383
3497
|
*
|
|
3498
|
+
* @stability stable
|
|
3384
3499
|
* @category searching
|
|
3385
3500
|
* @since 2.0.0
|
|
3386
3501
|
*/
|
|
@@ -3412,6 +3527,7 @@ export const findFirst: {
|
|
|
3412
3527
|
* @see {@link findFirstIndex} — get the index instead
|
|
3413
3528
|
* @see {@link findFirstWithIndex} — get both element and index
|
|
3414
3529
|
*
|
|
3530
|
+
* @stability stable
|
|
3415
3531
|
* @category searching
|
|
3416
3532
|
* @since 2.0.0
|
|
3417
3533
|
*/
|
|
@@ -3443,6 +3559,7 @@ export const findFirst: {
|
|
|
3443
3559
|
* @see {@link findFirstIndex} — get the index instead
|
|
3444
3560
|
* @see {@link findFirstWithIndex} — get both element and index
|
|
3445
3561
|
*
|
|
3562
|
+
* @stability stable
|
|
3446
3563
|
* @category searching
|
|
3447
3564
|
* @since 2.0.0
|
|
3448
3565
|
*/
|
|
@@ -3474,6 +3591,7 @@ export const findFirst: {
|
|
|
3474
3591
|
* @see {@link findFirst} — get only the element
|
|
3475
3592
|
* @see {@link findFirstIndex} — get only the index
|
|
3476
3593
|
*
|
|
3594
|
+
* @stability stable
|
|
3477
3595
|
* @category searching
|
|
3478
3596
|
* @since 3.17.0
|
|
3479
3597
|
*/
|
|
@@ -3503,6 +3621,7 @@ export const findFirstWithIndex: {
|
|
|
3503
3621
|
* @see {@link findFirst} — get only the element
|
|
3504
3622
|
* @see {@link findFirstIndex} — get only the index
|
|
3505
3623
|
*
|
|
3624
|
+
* @stability stable
|
|
3506
3625
|
* @category searching
|
|
3507
3626
|
* @since 3.17.0
|
|
3508
3627
|
*/
|
|
@@ -3532,6 +3651,7 @@ export const findFirstWithIndex: {
|
|
|
3532
3651
|
* @see {@link findFirst} — get only the element
|
|
3533
3652
|
* @see {@link findFirstIndex} — get only the index
|
|
3534
3653
|
*
|
|
3654
|
+
* @stability stable
|
|
3535
3655
|
* @category searching
|
|
3536
3656
|
* @since 3.17.0
|
|
3537
3657
|
*/
|
|
@@ -3561,6 +3681,7 @@ export const findFirstWithIndex: {
|
|
|
3561
3681
|
* @see {@link findFirst} — get only the element
|
|
3562
3682
|
* @see {@link findFirstIndex} — get only the index
|
|
3563
3683
|
*
|
|
3684
|
+
* @stability stable
|
|
3564
3685
|
* @category searching
|
|
3565
3686
|
* @since 3.17.0
|
|
3566
3687
|
*/
|
|
@@ -3590,6 +3711,7 @@ export const findFirstWithIndex: {
|
|
|
3590
3711
|
* @see {@link findFirst} — get only the element
|
|
3591
3712
|
* @see {@link findFirstIndex} — get only the index
|
|
3592
3713
|
*
|
|
3714
|
+
* @stability stable
|
|
3593
3715
|
* @category searching
|
|
3594
3716
|
* @since 3.17.0
|
|
3595
3717
|
*/
|
|
@@ -3619,6 +3741,7 @@ export const findFirstWithIndex: {
|
|
|
3619
3741
|
* @see {@link findFirst} — get only the element
|
|
3620
3742
|
* @see {@link findFirstIndex} — get only the index
|
|
3621
3743
|
*
|
|
3744
|
+
* @stability stable
|
|
3622
3745
|
* @category searching
|
|
3623
3746
|
* @since 3.17.0
|
|
3624
3747
|
*/
|
|
@@ -3648,6 +3771,7 @@ export const findFirstWithIndex: {
|
|
|
3648
3771
|
* @see {@link findFirst} — get only the element
|
|
3649
3772
|
* @see {@link findFirstIndex} — get only the index
|
|
3650
3773
|
*
|
|
3774
|
+
* @stability stable
|
|
3651
3775
|
* @category searching
|
|
3652
3776
|
* @since 3.17.0
|
|
3653
3777
|
*/
|
|
@@ -3700,6 +3824,7 @@ export const findFirstWithIndex: {
|
|
|
3700
3824
|
* @see {@link findFirst} — search from the start
|
|
3701
3825
|
* @see {@link findLastIndex} — get the index instead
|
|
3702
3826
|
*
|
|
3827
|
+
* @stability stable
|
|
3703
3828
|
* @category searching
|
|
3704
3829
|
* @since 2.0.0
|
|
3705
3830
|
*/
|
|
@@ -3728,6 +3853,7 @@ export const findLast: {
|
|
|
3728
3853
|
* @see {@link findFirst} — search from the start
|
|
3729
3854
|
* @see {@link findLastIndex} — get the index instead
|
|
3730
3855
|
*
|
|
3856
|
+
* @stability stable
|
|
3731
3857
|
* @category searching
|
|
3732
3858
|
* @since 2.0.0
|
|
3733
3859
|
*/
|
|
@@ -3756,6 +3882,7 @@ export const findLast: {
|
|
|
3756
3882
|
* @see {@link findFirst} — search from the start
|
|
3757
3883
|
* @see {@link findLastIndex} — get the index instead
|
|
3758
3884
|
*
|
|
3885
|
+
* @stability stable
|
|
3759
3886
|
* @category searching
|
|
3760
3887
|
* @since 2.0.0
|
|
3761
3888
|
*/
|
|
@@ -3784,6 +3911,7 @@ export const findLast: {
|
|
|
3784
3911
|
* @see {@link findFirst} — search from the start
|
|
3785
3912
|
* @see {@link findLastIndex} — get the index instead
|
|
3786
3913
|
*
|
|
3914
|
+
* @stability stable
|
|
3787
3915
|
* @category searching
|
|
3788
3916
|
* @since 2.0.0
|
|
3789
3917
|
*/
|
|
@@ -3812,6 +3940,7 @@ export const findLast: {
|
|
|
3812
3940
|
* @see {@link findFirst} — search from the start
|
|
3813
3941
|
* @see {@link findLastIndex} — get the index instead
|
|
3814
3942
|
*
|
|
3943
|
+
* @stability stable
|
|
3815
3944
|
* @category searching
|
|
3816
3945
|
* @since 2.0.0
|
|
3817
3946
|
*/
|
|
@@ -3840,6 +3969,7 @@ export const findLast: {
|
|
|
3840
3969
|
* @see {@link findFirst} — search from the start
|
|
3841
3970
|
* @see {@link findLastIndex} — get the index instead
|
|
3842
3971
|
*
|
|
3972
|
+
* @stability stable
|
|
3843
3973
|
* @category searching
|
|
3844
3974
|
* @since 2.0.0
|
|
3845
3975
|
*/
|
|
@@ -3868,6 +3998,7 @@ export const findLast: {
|
|
|
3868
3998
|
* @see {@link findFirst} — search from the start
|
|
3869
3999
|
* @see {@link findLastIndex} — get the index instead
|
|
3870
4000
|
*
|
|
4001
|
+
* @stability stable
|
|
3871
4002
|
* @category searching
|
|
3872
4003
|
* @since 2.0.0
|
|
3873
4004
|
*/
|
|
@@ -3919,6 +4050,7 @@ export const findLast: {
|
|
|
3919
4050
|
* @see {@link replace} — replace an existing element
|
|
3920
4051
|
* @see {@link modify} — transform an element at an index
|
|
3921
4052
|
*
|
|
4053
|
+
* @stability stable
|
|
3922
4054
|
* @category transforming
|
|
3923
4055
|
* @since 2.0.0
|
|
3924
4056
|
*/
|
|
@@ -3946,6 +4078,7 @@ export const insertAt: {
|
|
|
3946
4078
|
* @see {@link replace} — replace an existing element
|
|
3947
4079
|
* @see {@link modify} — transform an element at an index
|
|
3948
4080
|
*
|
|
4081
|
+
* @stability stable
|
|
3949
4082
|
* @category transforming
|
|
3950
4083
|
* @since 2.0.0
|
|
3951
4084
|
*/
|
|
@@ -3973,6 +4106,7 @@ export const insertAt: {
|
|
|
3973
4106
|
* @see {@link replace} — replace an existing element
|
|
3974
4107
|
* @see {@link modify} — transform an element at an index
|
|
3975
4108
|
*
|
|
4109
|
+
* @stability stable
|
|
3976
4110
|
* @category transforming
|
|
3977
4111
|
* @since 2.0.0
|
|
3978
4112
|
*/
|
|
@@ -4010,6 +4144,7 @@ export const insertAt: {
|
|
|
4010
4144
|
* @see {@link modify} — transform an element with a function
|
|
4011
4145
|
* @see {@link insertAt} — insert without removing
|
|
4012
4146
|
*
|
|
4147
|
+
* @stability stable
|
|
4013
4148
|
* @category transforming
|
|
4014
4149
|
* @since 2.0.0
|
|
4015
4150
|
*/
|
|
@@ -4037,6 +4172,7 @@ export const replace: {
|
|
|
4037
4172
|
* @see {@link modify} — transform an element with a function
|
|
4038
4173
|
* @see {@link insertAt} — insert without removing
|
|
4039
4174
|
*
|
|
4175
|
+
* @stability stable
|
|
4040
4176
|
* @category transforming
|
|
4041
4177
|
* @since 2.0.0
|
|
4042
4178
|
*/
|
|
@@ -4066,6 +4202,7 @@ export const replace: {
|
|
|
4066
4202
|
* @see {@link modify} — transform an element with a function
|
|
4067
4203
|
* @see {@link insertAt} — insert without removing
|
|
4068
4204
|
*
|
|
4205
|
+
* @stability stable
|
|
4069
4206
|
* @category transforming
|
|
4070
4207
|
* @since 2.0.0
|
|
4071
4208
|
*/
|
|
@@ -4104,6 +4241,7 @@ export const replace: {
|
|
|
4104
4241
|
* @see {@link modifyHeadNonEmpty} — modify the first element
|
|
4105
4242
|
* @see {@link modifyLastNonEmpty} — modify the last element
|
|
4106
4243
|
*
|
|
4244
|
+
* @stability stable
|
|
4107
4245
|
* @category transforming
|
|
4108
4246
|
* @since 2.0.0
|
|
4109
4247
|
*/
|
|
@@ -4137,6 +4275,7 @@ export const modify: {
|
|
|
4137
4275
|
* @see {@link modifyHeadNonEmpty} — modify the first element
|
|
4138
4276
|
* @see {@link modifyLastNonEmpty} — modify the last element
|
|
4139
4277
|
*
|
|
4278
|
+
* @stability stable
|
|
4140
4279
|
* @category transforming
|
|
4141
4280
|
* @since 2.0.0
|
|
4142
4281
|
*/
|
|
@@ -4170,6 +4309,7 @@ export const modify: {
|
|
|
4170
4309
|
* @see {@link modifyHeadNonEmpty} — modify the first element
|
|
4171
4310
|
* @see {@link modifyLastNonEmpty} — modify the last element
|
|
4172
4311
|
*
|
|
4312
|
+
* @stability stable
|
|
4173
4313
|
* @category transforming
|
|
4174
4314
|
* @since 2.0.0
|
|
4175
4315
|
*/
|
|
@@ -4207,6 +4347,7 @@ export const modify: {
|
|
|
4207
4347
|
* @see {@link insertAt} — insert an element
|
|
4208
4348
|
* @see {@link filter} — remove elements by predicate
|
|
4209
4349
|
*
|
|
4350
|
+
* @stability stable
|
|
4210
4351
|
* @category transforming
|
|
4211
4352
|
* @since 2.0.0
|
|
4212
4353
|
*/
|
|
@@ -4232,6 +4373,7 @@ export const remove: {
|
|
|
4232
4373
|
* @see {@link insertAt} — insert an element
|
|
4233
4374
|
* @see {@link filter} — remove elements by predicate
|
|
4234
4375
|
*
|
|
4376
|
+
* @stability stable
|
|
4235
4377
|
* @category transforming
|
|
4236
4378
|
* @since 2.0.0
|
|
4237
4379
|
*/
|
|
@@ -4257,6 +4399,7 @@ export const remove: {
|
|
|
4257
4399
|
* @see {@link insertAt} — insert an element
|
|
4258
4400
|
* @see {@link filter} — remove elements by predicate
|
|
4259
4401
|
*
|
|
4402
|
+
* @stability stable
|
|
4260
4403
|
* @category transforming
|
|
4261
4404
|
* @since 2.0.0
|
|
4262
4405
|
*/
|
|
@@ -4291,6 +4434,7 @@ export const remove: {
|
|
|
4291
4434
|
* Array.reverse([1, 2, 3, 4]) // => [4, 3, 2, 1]
|
|
4292
4435
|
* ```
|
|
4293
4436
|
*
|
|
4437
|
+
* @stability stable
|
|
4294
4438
|
* @category transforming
|
|
4295
4439
|
* @since 2.0.0
|
|
4296
4440
|
*/
|
|
@@ -4322,6 +4466,7 @@ export const reverse = <S extends Iterable<any>>(
|
|
|
4322
4466
|
* @see {@link sortWith} — sort by a mapping function
|
|
4323
4467
|
* @see {@link sortBy} — sort by multiple orders
|
|
4324
4468
|
*
|
|
4469
|
+
* @stability stable
|
|
4325
4470
|
* @category sorting
|
|
4326
4471
|
* @since 2.0.0
|
|
4327
4472
|
*/
|
|
@@ -4349,6 +4494,7 @@ export const sort: {
|
|
|
4349
4494
|
* @see {@link sortWith} — sort by a mapping function
|
|
4350
4495
|
* @see {@link sortBy} — sort by multiple orders
|
|
4351
4496
|
*
|
|
4497
|
+
* @stability stable
|
|
4352
4498
|
* @category sorting
|
|
4353
4499
|
* @since 2.0.0
|
|
4354
4500
|
*/
|
|
@@ -4376,6 +4522,7 @@ export const sort: {
|
|
|
4376
4522
|
* @see {@link sortWith} — sort by a mapping function
|
|
4377
4523
|
* @see {@link sortBy} — sort by multiple orders
|
|
4378
4524
|
*
|
|
4525
|
+
* @stability stable
|
|
4379
4526
|
* @category sorting
|
|
4380
4527
|
* @since 2.0.0
|
|
4381
4528
|
*/
|
|
@@ -4403,6 +4550,7 @@ export const sort: {
|
|
|
4403
4550
|
* @see {@link sortWith} — sort by a mapping function
|
|
4404
4551
|
* @see {@link sortBy} — sort by multiple orders
|
|
4405
4552
|
*
|
|
4553
|
+
* @stability stable
|
|
4406
4554
|
* @category sorting
|
|
4407
4555
|
* @since 2.0.0
|
|
4408
4556
|
*/
|
|
@@ -4437,6 +4585,7 @@ export const sort: {
|
|
|
4437
4585
|
* @see {@link sort} for sorting with an `Order` that compares the elements directly
|
|
4438
4586
|
* @see {@link sortBy} for sorting with multiple `Order`s applied in sequence
|
|
4439
4587
|
*
|
|
4588
|
+
* @stability stable
|
|
4440
4589
|
* @category sorting
|
|
4441
4590
|
* @since 2.0.0
|
|
4442
4591
|
*/
|
|
@@ -4465,6 +4614,7 @@ export const sortWith: {
|
|
|
4465
4614
|
* @see {@link sort} for sorting with an `Order` that compares the elements directly
|
|
4466
4615
|
* @see {@link sortBy} for sorting with multiple `Order`s applied in sequence
|
|
4467
4616
|
*
|
|
4617
|
+
* @stability stable
|
|
4468
4618
|
* @category sorting
|
|
4469
4619
|
* @since 2.0.0
|
|
4470
4620
|
*/
|
|
@@ -4493,6 +4643,7 @@ export const sortWith: {
|
|
|
4493
4643
|
* @see {@link sort} for sorting with an `Order` that compares the elements directly
|
|
4494
4644
|
* @see {@link sortBy} for sorting with multiple `Order`s applied in sequence
|
|
4495
4645
|
*
|
|
4646
|
+
* @stability stable
|
|
4496
4647
|
* @category sorting
|
|
4497
4648
|
* @since 2.0.0
|
|
4498
4649
|
*/
|
|
@@ -4521,6 +4672,7 @@ export const sortWith: {
|
|
|
4521
4672
|
* @see {@link sort} for sorting with an `Order` that compares the elements directly
|
|
4522
4673
|
* @see {@link sortBy} for sorting with multiple `Order`s applied in sequence
|
|
4523
4674
|
*
|
|
4675
|
+
* @stability stable
|
|
4524
4676
|
* @category sorting
|
|
4525
4677
|
* @since 2.0.0
|
|
4526
4678
|
*/
|
|
@@ -4570,6 +4722,7 @@ export const sortWith: {
|
|
|
4570
4722
|
* @see {@link sort} — sort by a single `Order`
|
|
4571
4723
|
* @see {@link sortWith} — sort by a derived key
|
|
4572
4724
|
*
|
|
4725
|
+
* @stability stable
|
|
4573
4726
|
* @category sorting
|
|
4574
4727
|
* @since 2.0.0
|
|
4575
4728
|
*/
|
|
@@ -4611,6 +4764,7 @@ export const sortBy = <S extends Iterable<any>>(
|
|
|
4611
4764
|
* @see {@link zipWith} — zip with a combiner function
|
|
4612
4765
|
* @see {@link unzip} — inverse operation
|
|
4613
4766
|
*
|
|
4767
|
+
* @stability stable
|
|
4614
4768
|
* @category zipping
|
|
4615
4769
|
* @since 2.0.0
|
|
4616
4770
|
*/
|
|
@@ -4638,6 +4792,7 @@ export const zip: {
|
|
|
4638
4792
|
* @see {@link zipWith} — zip with a combiner function
|
|
4639
4793
|
* @see {@link unzip} — inverse operation
|
|
4640
4794
|
*
|
|
4795
|
+
* @stability stable
|
|
4641
4796
|
* @category zipping
|
|
4642
4797
|
* @since 2.0.0
|
|
4643
4798
|
*/
|
|
@@ -4665,6 +4820,7 @@ export const zip: {
|
|
|
4665
4820
|
* @see {@link zipWith} — zip with a combiner function
|
|
4666
4821
|
* @see {@link unzip} — inverse operation
|
|
4667
4822
|
*
|
|
4823
|
+
* @stability stable
|
|
4668
4824
|
* @category zipping
|
|
4669
4825
|
* @since 2.0.0
|
|
4670
4826
|
*/
|
|
@@ -4692,6 +4848,7 @@ export const zip: {
|
|
|
4692
4848
|
* @see {@link zipWith} — zip with a combiner function
|
|
4693
4849
|
* @see {@link unzip} — inverse operation
|
|
4694
4850
|
*
|
|
4851
|
+
* @stability stable
|
|
4695
4852
|
* @category zipping
|
|
4696
4853
|
* @since 2.0.0
|
|
4697
4854
|
*/
|
|
@@ -4719,6 +4876,7 @@ export const zip: {
|
|
|
4719
4876
|
* @see {@link zipWith} — zip with a combiner function
|
|
4720
4877
|
* @see {@link unzip} — inverse operation
|
|
4721
4878
|
*
|
|
4879
|
+
* @stability stable
|
|
4722
4880
|
* @category zipping
|
|
4723
4881
|
* @since 2.0.0
|
|
4724
4882
|
*/
|
|
@@ -4747,6 +4905,7 @@ export const zip: {
|
|
|
4747
4905
|
*
|
|
4748
4906
|
* @see {@link zip} — zip into tuples
|
|
4749
4907
|
*
|
|
4908
|
+
* @stability stable
|
|
4750
4909
|
* @category zipping
|
|
4751
4910
|
* @since 2.0.0
|
|
4752
4911
|
*/
|
|
@@ -4770,6 +4929,7 @@ export const zipWith: {
|
|
|
4770
4929
|
*
|
|
4771
4930
|
* @see {@link zip} — zip into tuples
|
|
4772
4931
|
*
|
|
4932
|
+
* @stability stable
|
|
4773
4933
|
* @category zipping
|
|
4774
4934
|
* @since 2.0.0
|
|
4775
4935
|
*/
|
|
@@ -4793,6 +4953,7 @@ export const zipWith: {
|
|
|
4793
4953
|
*
|
|
4794
4954
|
* @see {@link zip} — zip into tuples
|
|
4795
4955
|
*
|
|
4956
|
+
* @stability stable
|
|
4796
4957
|
* @category zipping
|
|
4797
4958
|
* @since 2.0.0
|
|
4798
4959
|
*/
|
|
@@ -4816,6 +4977,7 @@ export const zipWith: {
|
|
|
4816
4977
|
*
|
|
4817
4978
|
* @see {@link zip} — zip into tuples
|
|
4818
4979
|
*
|
|
4980
|
+
* @stability stable
|
|
4819
4981
|
* @category zipping
|
|
4820
4982
|
* @since 2.0.0
|
|
4821
4983
|
*/
|
|
@@ -4843,6 +5005,7 @@ export const zipWith: {
|
|
|
4843
5005
|
*
|
|
4844
5006
|
* @see {@link zip} — zip into tuples
|
|
4845
5007
|
*
|
|
5008
|
+
* @stability stable
|
|
4846
5009
|
* @category zipping
|
|
4847
5010
|
* @since 2.0.0
|
|
4848
5011
|
*/
|
|
@@ -4874,6 +5037,7 @@ export const zipWith: {
|
|
|
4874
5037
|
*
|
|
4875
5038
|
* @see {@link zip} — combine two arrays into pairs
|
|
4876
5039
|
*
|
|
5040
|
+
* @stability stable
|
|
4877
5041
|
* @category zipping
|
|
4878
5042
|
* @since 2.0.0
|
|
4879
5043
|
*/
|
|
@@ -4917,6 +5081,7 @@ export const unzip: <S extends Iterable<readonly [any, any]>>(
|
|
|
4917
5081
|
*
|
|
4918
5082
|
* @see {@link join} — intersperse and join into a string
|
|
4919
5083
|
*
|
|
5084
|
+
* @stability stable
|
|
4920
5085
|
* @category transforming
|
|
4921
5086
|
* @since 2.0.0
|
|
4922
5087
|
*/
|
|
@@ -4943,6 +5108,7 @@ export const intersperse: {
|
|
|
4943
5108
|
*
|
|
4944
5109
|
* @see {@link join} — intersperse and join into a string
|
|
4945
5110
|
*
|
|
5111
|
+
* @stability stable
|
|
4946
5112
|
* @category transforming
|
|
4947
5113
|
* @since 2.0.0
|
|
4948
5114
|
*/
|
|
@@ -4969,6 +5135,7 @@ export const intersperse: {
|
|
|
4969
5135
|
*
|
|
4970
5136
|
* @see {@link join} — intersperse and join into a string
|
|
4971
5137
|
*
|
|
5138
|
+
* @stability stable
|
|
4972
5139
|
* @category transforming
|
|
4973
5140
|
* @since 2.0.0
|
|
4974
5141
|
*/
|
|
@@ -4995,6 +5162,7 @@ export const intersperse: {
|
|
|
4995
5162
|
*
|
|
4996
5163
|
* @see {@link join} — intersperse and join into a string
|
|
4997
5164
|
*
|
|
5165
|
+
* @stability stable
|
|
4998
5166
|
* @category transforming
|
|
4999
5167
|
* @since 2.0.0
|
|
5000
5168
|
*/
|
|
@@ -5034,6 +5202,7 @@ export const intersperse: {
|
|
|
5034
5202
|
* @see {@link setHeadNonEmpty} — replace with a fixed value
|
|
5035
5203
|
* @see {@link modifyLastNonEmpty} — modify the last element
|
|
5036
5204
|
*
|
|
5205
|
+
* @stability stable
|
|
5037
5206
|
* @category transforming
|
|
5038
5207
|
* @since 4.0.0
|
|
5039
5208
|
*/
|
|
@@ -5057,6 +5226,7 @@ export const modifyHeadNonEmpty: {
|
|
|
5057
5226
|
* @see {@link setHeadNonEmpty} — replace with a fixed value
|
|
5058
5227
|
* @see {@link modifyLastNonEmpty} — modify the last element
|
|
5059
5228
|
*
|
|
5229
|
+
* @stability stable
|
|
5060
5230
|
* @category transforming
|
|
5061
5231
|
* @since 4.0.0
|
|
5062
5232
|
*/
|
|
@@ -5080,6 +5250,7 @@ export const modifyHeadNonEmpty: {
|
|
|
5080
5250
|
* @see {@link setHeadNonEmpty} — replace with a fixed value
|
|
5081
5251
|
* @see {@link modifyLastNonEmpty} — modify the last element
|
|
5082
5252
|
*
|
|
5253
|
+
* @stability stable
|
|
5083
5254
|
* @category transforming
|
|
5084
5255
|
* @since 4.0.0
|
|
5085
5256
|
*/
|
|
@@ -5111,6 +5282,7 @@ export const modifyHeadNonEmpty: {
|
|
|
5111
5282
|
* @see {@link modifyHeadNonEmpty} — transform the head with a function
|
|
5112
5283
|
* @see {@link setLastNonEmpty} — replace the last element
|
|
5113
5284
|
*
|
|
5285
|
+
* @stability stable
|
|
5114
5286
|
* @category transforming
|
|
5115
5287
|
* @since 4.0.0
|
|
5116
5288
|
*/
|
|
@@ -5134,6 +5306,7 @@ export const setHeadNonEmpty: {
|
|
|
5134
5306
|
* @see {@link modifyHeadNonEmpty} — transform the head with a function
|
|
5135
5307
|
* @see {@link setLastNonEmpty} — replace the last element
|
|
5136
5308
|
*
|
|
5309
|
+
* @stability stable
|
|
5137
5310
|
* @category transforming
|
|
5138
5311
|
* @since 4.0.0
|
|
5139
5312
|
*/
|
|
@@ -5157,6 +5330,7 @@ export const setHeadNonEmpty: {
|
|
|
5157
5330
|
* @see {@link modifyHeadNonEmpty} — transform the head with a function
|
|
5158
5331
|
* @see {@link setLastNonEmpty} — replace the last element
|
|
5159
5332
|
*
|
|
5333
|
+
* @stability stable
|
|
5160
5334
|
* @category transforming
|
|
5161
5335
|
* @since 4.0.0
|
|
5162
5336
|
*/
|
|
@@ -5186,6 +5360,7 @@ export const setHeadNonEmpty: {
|
|
|
5186
5360
|
* @see {@link setLastNonEmpty} — replace with a fixed value
|
|
5187
5361
|
* @see {@link modifyHeadNonEmpty} — modify the first element
|
|
5188
5362
|
*
|
|
5363
|
+
* @stability stable
|
|
5189
5364
|
* @category transforming
|
|
5190
5365
|
* @since 4.0.0
|
|
5191
5366
|
*/
|
|
@@ -5210,6 +5385,7 @@ export const modifyLastNonEmpty: {
|
|
|
5210
5385
|
* @see {@link setLastNonEmpty} — replace with a fixed value
|
|
5211
5386
|
* @see {@link modifyHeadNonEmpty} — modify the first element
|
|
5212
5387
|
*
|
|
5388
|
+
* @stability stable
|
|
5213
5389
|
* @category transforming
|
|
5214
5390
|
* @since 4.0.0
|
|
5215
5391
|
*/
|
|
@@ -5234,6 +5410,7 @@ export const modifyLastNonEmpty: {
|
|
|
5234
5410
|
* @see {@link setLastNonEmpty} — replace with a fixed value
|
|
5235
5411
|
* @see {@link modifyHeadNonEmpty} — modify the first element
|
|
5236
5412
|
*
|
|
5413
|
+
* @stability stable
|
|
5237
5414
|
* @category transforming
|
|
5238
5415
|
* @since 4.0.0
|
|
5239
5416
|
*/
|
|
@@ -5263,6 +5440,7 @@ export const modifyLastNonEmpty: {
|
|
|
5263
5440
|
* @see {@link modifyLastNonEmpty} — transform the last element with a function
|
|
5264
5441
|
* @see {@link setHeadNonEmpty} — replace the first element
|
|
5265
5442
|
*
|
|
5443
|
+
* @stability stable
|
|
5266
5444
|
* @category transforming
|
|
5267
5445
|
* @since 4.0.0
|
|
5268
5446
|
*/
|
|
@@ -5286,6 +5464,7 @@ export const setLastNonEmpty: {
|
|
|
5286
5464
|
* @see {@link modifyLastNonEmpty} — transform the last element with a function
|
|
5287
5465
|
* @see {@link setHeadNonEmpty} — replace the first element
|
|
5288
5466
|
*
|
|
5467
|
+
* @stability stable
|
|
5289
5468
|
* @category transforming
|
|
5290
5469
|
* @since 4.0.0
|
|
5291
5470
|
*/
|
|
@@ -5309,6 +5488,7 @@ export const setLastNonEmpty: {
|
|
|
5309
5488
|
* @see {@link modifyLastNonEmpty} — transform the last element with a function
|
|
5310
5489
|
* @see {@link setHeadNonEmpty} — replace the first element
|
|
5311
5490
|
*
|
|
5491
|
+
* @stability stable
|
|
5312
5492
|
* @category transforming
|
|
5313
5493
|
* @since 4.0.0
|
|
5314
5494
|
*/
|
|
@@ -5344,6 +5524,7 @@ export const setLastNonEmpty: {
|
|
|
5344
5524
|
* @see {@link take} for taking a fixed number of elements from the start
|
|
5345
5525
|
* @see {@link drop} for dropping a fixed number of elements from the start
|
|
5346
5526
|
*
|
|
5527
|
+
* @stability stable
|
|
5347
5528
|
* @category transforming
|
|
5348
5529
|
* @since 2.0.0
|
|
5349
5530
|
*/
|
|
@@ -5374,6 +5555,7 @@ export const rotate: {
|
|
|
5374
5555
|
* @see {@link take} for taking a fixed number of elements from the start
|
|
5375
5556
|
* @see {@link drop} for dropping a fixed number of elements from the start
|
|
5376
5557
|
*
|
|
5558
|
+
* @stability stable
|
|
5377
5559
|
* @category transforming
|
|
5378
5560
|
* @since 2.0.0
|
|
5379
5561
|
*/
|
|
@@ -5404,6 +5586,7 @@ export const rotate: {
|
|
|
5404
5586
|
* @see {@link take} for taking a fixed number of elements from the start
|
|
5405
5587
|
* @see {@link drop} for dropping a fixed number of elements from the start
|
|
5406
5588
|
*
|
|
5589
|
+
* @stability stable
|
|
5407
5590
|
* @category transforming
|
|
5408
5591
|
* @since 2.0.0
|
|
5409
5592
|
*/
|
|
@@ -5434,6 +5617,7 @@ export const rotate: {
|
|
|
5434
5617
|
* @see {@link take} for taking a fixed number of elements from the start
|
|
5435
5618
|
* @see {@link drop} for dropping a fixed number of elements from the start
|
|
5436
5619
|
*
|
|
5620
|
+
* @stability stable
|
|
5437
5621
|
* @category transforming
|
|
5438
5622
|
* @since 2.0.0
|
|
5439
5623
|
*/
|
|
@@ -5476,6 +5660,7 @@ export const rotate: {
|
|
|
5476
5660
|
*
|
|
5477
5661
|
* @see {@link contains} for the `Equal.equivalence()` variant
|
|
5478
5662
|
*
|
|
5663
|
+
* @stability stable
|
|
5479
5664
|
* @category predicates
|
|
5480
5665
|
* @since 2.0.0
|
|
5481
5666
|
*/
|
|
@@ -5511,6 +5696,7 @@ export const containsWith = <A>(isEquivalent: (self: A, that: A) => boolean): {
|
|
|
5511
5696
|
*
|
|
5512
5697
|
* @see {@link containsWith} — use custom equality
|
|
5513
5698
|
*
|
|
5699
|
+
* @stability stable
|
|
5514
5700
|
* @category predicates
|
|
5515
5701
|
* @since 2.0.0
|
|
5516
5702
|
*/
|
|
@@ -5534,6 +5720,7 @@ export const contains: {
|
|
|
5534
5720
|
*
|
|
5535
5721
|
* @see {@link containsWith} — use custom equality
|
|
5536
5722
|
*
|
|
5723
|
+
* @stability stable
|
|
5537
5724
|
* @category predicates
|
|
5538
5725
|
* @since 2.0.0
|
|
5539
5726
|
*/
|
|
@@ -5557,6 +5744,7 @@ export const contains: {
|
|
|
5557
5744
|
*
|
|
5558
5745
|
* @see {@link containsWith} — use custom equality
|
|
5559
5746
|
*
|
|
5747
|
+
* @stability stable
|
|
5560
5748
|
* @category predicates
|
|
5561
5749
|
* @since 2.0.0
|
|
5562
5750
|
*/
|
|
@@ -5588,6 +5776,7 @@ export const contains: {
|
|
|
5588
5776
|
* @see {@link chunksOf} — split into fixed-size chunks
|
|
5589
5777
|
* @see {@link splitAt} — split at an index
|
|
5590
5778
|
*
|
|
5779
|
+
* @stability stable
|
|
5591
5780
|
* @category splitting
|
|
5592
5781
|
* @since 2.0.0
|
|
5593
5782
|
*/
|
|
@@ -5617,6 +5806,7 @@ export const chop: {
|
|
|
5617
5806
|
* @see {@link chunksOf} — split into fixed-size chunks
|
|
5618
5807
|
* @see {@link splitAt} — split at an index
|
|
5619
5808
|
*
|
|
5809
|
+
* @stability stable
|
|
5620
5810
|
* @category splitting
|
|
5621
5811
|
* @since 2.0.0
|
|
5622
5812
|
*/
|
|
@@ -5648,6 +5838,7 @@ export const chop: {
|
|
|
5648
5838
|
* @see {@link chunksOf} — split into fixed-size chunks
|
|
5649
5839
|
* @see {@link splitAt} — split at an index
|
|
5650
5840
|
*
|
|
5841
|
+
* @stability stable
|
|
5651
5842
|
* @category splitting
|
|
5652
5843
|
* @since 2.0.0
|
|
5653
5844
|
*/
|
|
@@ -5680,6 +5871,7 @@ export const chop: {
|
|
|
5680
5871
|
* @see {@link chunksOf} — split into fixed-size chunks
|
|
5681
5872
|
* @see {@link splitAt} — split at an index
|
|
5682
5873
|
*
|
|
5874
|
+
* @stability stable
|
|
5683
5875
|
* @category splitting
|
|
5684
5876
|
* @since 2.0.0
|
|
5685
5877
|
*/
|
|
@@ -5729,6 +5921,7 @@ export const chop: {
|
|
|
5729
5921
|
* @see {@link splitAtNonEmpty} — for non-empty arrays
|
|
5730
5922
|
* @see {@link splitWhere} — split at a predicate boundary
|
|
5731
5923
|
*
|
|
5924
|
+
* @stability stable
|
|
5732
5925
|
* @category splitting
|
|
5733
5926
|
* @since 2.0.0
|
|
5734
5927
|
*/
|
|
@@ -5756,6 +5949,7 @@ export const splitAt: {
|
|
|
5756
5949
|
* @see {@link splitAtNonEmpty} — for non-empty arrays
|
|
5757
5950
|
* @see {@link splitWhere} — split at a predicate boundary
|
|
5758
5951
|
*
|
|
5952
|
+
* @stability stable
|
|
5759
5953
|
* @category splitting
|
|
5760
5954
|
* @since 2.0.0
|
|
5761
5955
|
*/
|
|
@@ -5783,6 +5977,7 @@ export const splitAt: {
|
|
|
5783
5977
|
* @see {@link splitAtNonEmpty} — for non-empty arrays
|
|
5784
5978
|
* @see {@link splitWhere} — split at a predicate boundary
|
|
5785
5979
|
*
|
|
5980
|
+
* @stability stable
|
|
5786
5981
|
* @category splitting
|
|
5787
5982
|
* @since 2.0.0
|
|
5788
5983
|
*/
|
|
@@ -5822,6 +6017,7 @@ export const splitAt: {
|
|
|
5822
6017
|
*
|
|
5823
6018
|
* @see {@link splitAt} — for possibly-empty arrays
|
|
5824
6019
|
*
|
|
6020
|
+
* @stability stable
|
|
5825
6021
|
* @category splitting
|
|
5826
6022
|
* @since 4.0.0
|
|
5827
6023
|
*/
|
|
@@ -5849,6 +6045,7 @@ export const splitAtNonEmpty: {
|
|
|
5849
6045
|
*
|
|
5850
6046
|
* @see {@link splitAt} — for possibly-empty arrays
|
|
5851
6047
|
*
|
|
6048
|
+
* @stability stable
|
|
5852
6049
|
* @category splitting
|
|
5853
6050
|
* @since 4.0.0
|
|
5854
6051
|
*/
|
|
@@ -5876,6 +6073,7 @@ export const splitAtNonEmpty: {
|
|
|
5876
6073
|
*
|
|
5877
6074
|
* @see {@link splitAt} — for possibly-empty arrays
|
|
5878
6075
|
*
|
|
6076
|
+
* @stability stable
|
|
5879
6077
|
* @category splitting
|
|
5880
6078
|
* @since 4.0.0
|
|
5881
6079
|
*/
|
|
@@ -5909,6 +6107,7 @@ export const splitAtNonEmpty: {
|
|
|
5909
6107
|
*
|
|
5910
6108
|
* @see {@link chunksOf} — split into fixed-size chunks
|
|
5911
6109
|
*
|
|
6110
|
+
* @stability stable
|
|
5912
6111
|
* @category splitting
|
|
5913
6112
|
* @since 2.0.0
|
|
5914
6113
|
*/
|
|
@@ -5935,6 +6134,7 @@ export const split: {
|
|
|
5935
6134
|
*
|
|
5936
6135
|
* @see {@link chunksOf} — split into fixed-size chunks
|
|
5937
6136
|
*
|
|
6137
|
+
* @stability stable
|
|
5938
6138
|
* @category splitting
|
|
5939
6139
|
* @since 2.0.0
|
|
5940
6140
|
*/
|
|
@@ -5961,6 +6161,7 @@ export const split: {
|
|
|
5961
6161
|
*
|
|
5962
6162
|
* @see {@link chunksOf} — split into fixed-size chunks
|
|
5963
6163
|
*
|
|
6164
|
+
* @stability stable
|
|
5964
6165
|
* @category splitting
|
|
5965
6166
|
* @since 2.0.0
|
|
5966
6167
|
*/
|
|
@@ -5990,6 +6191,7 @@ export const split: {
|
|
|
5990
6191
|
* @see {@link span} — splits at the first element that fails the predicate
|
|
5991
6192
|
* @see {@link splitAt} — split at a fixed index
|
|
5992
6193
|
*
|
|
6194
|
+
* @stability stable
|
|
5993
6195
|
* @category splitting
|
|
5994
6196
|
* @since 2.0.0
|
|
5995
6197
|
*/
|
|
@@ -6014,6 +6216,7 @@ export const splitWhere: {
|
|
|
6014
6216
|
* @see {@link span} — splits at the first element that fails the predicate
|
|
6015
6217
|
* @see {@link splitAt} — split at a fixed index
|
|
6016
6218
|
*
|
|
6219
|
+
* @stability stable
|
|
6017
6220
|
* @category splitting
|
|
6018
6221
|
* @since 2.0.0
|
|
6019
6222
|
*/
|
|
@@ -6038,6 +6241,7 @@ export const splitWhere: {
|
|
|
6038
6241
|
* @see {@link span} — splits at the first element that fails the predicate
|
|
6039
6242
|
* @see {@link splitAt} — split at a fixed index
|
|
6040
6243
|
*
|
|
6244
|
+
* @stability stable
|
|
6041
6245
|
* @category splitting
|
|
6042
6246
|
* @since 2.0.0
|
|
6043
6247
|
*/
|
|
@@ -6075,6 +6279,7 @@ export const splitWhere: {
|
|
|
6075
6279
|
*
|
|
6076
6280
|
* @see {@link fromIterable} — returns the same reference for arrays
|
|
6077
6281
|
*
|
|
6282
|
+
* @stability stable
|
|
6078
6283
|
* @category transforming
|
|
6079
6284
|
* @since 2.0.0
|
|
6080
6285
|
*/
|
|
@@ -6106,6 +6311,7 @@ export const copy: {
|
|
|
6106
6311
|
*
|
|
6107
6312
|
* @see {@link fromIterable} — returns the same reference for arrays
|
|
6108
6313
|
*
|
|
6314
|
+
* @stability stable
|
|
6109
6315
|
* @category transforming
|
|
6110
6316
|
* @since 2.0.0
|
|
6111
6317
|
*/
|
|
@@ -6137,6 +6343,7 @@ export const copy: {
|
|
|
6137
6343
|
*
|
|
6138
6344
|
* @see {@link fromIterable} — returns the same reference for arrays
|
|
6139
6345
|
*
|
|
6346
|
+
* @stability stable
|
|
6140
6347
|
* @category transforming
|
|
6141
6348
|
* @since 2.0.0
|
|
6142
6349
|
*/
|
|
@@ -6167,6 +6374,7 @@ export const copy: {
|
|
|
6167
6374
|
* @see {@link take} — truncate without padding
|
|
6168
6375
|
* @see {@link replicate} — create an array of a single repeated value
|
|
6169
6376
|
*
|
|
6377
|
+
* @stability stable
|
|
6170
6378
|
* @category transforming
|
|
6171
6379
|
* @since 3.8.4
|
|
6172
6380
|
*/
|
|
@@ -6195,6 +6403,7 @@ export const pad: {
|
|
|
6195
6403
|
* @see {@link take} — truncate without padding
|
|
6196
6404
|
* @see {@link replicate} — create an array of a single repeated value
|
|
6197
6405
|
*
|
|
6406
|
+
* @stability stable
|
|
6198
6407
|
* @category transforming
|
|
6199
6408
|
* @since 3.8.4
|
|
6200
6409
|
*/
|
|
@@ -6225,6 +6434,7 @@ export const pad: {
|
|
|
6225
6434
|
* @see {@link take} — truncate without padding
|
|
6226
6435
|
* @see {@link replicate} — create an array of a single repeated value
|
|
6227
6436
|
*
|
|
6437
|
+
* @stability stable
|
|
6228
6438
|
* @category transforming
|
|
6229
6439
|
* @since 3.8.4
|
|
6230
6440
|
*/
|
|
@@ -6267,6 +6477,7 @@ export const pad: {
|
|
|
6267
6477
|
* @see {@link split} — split into a given number of groups
|
|
6268
6478
|
* @see {@link window} — sliding windows
|
|
6269
6479
|
*
|
|
6480
|
+
* @stability stable
|
|
6270
6481
|
* @category splitting
|
|
6271
6482
|
* @since 2.0.0
|
|
6272
6483
|
*/
|
|
@@ -6298,6 +6509,7 @@ export const chunksOf: {
|
|
|
6298
6509
|
* @see {@link split} — split into a given number of groups
|
|
6299
6510
|
* @see {@link window} — sliding windows
|
|
6300
6511
|
*
|
|
6512
|
+
* @stability stable
|
|
6301
6513
|
* @category splitting
|
|
6302
6514
|
* @since 2.0.0
|
|
6303
6515
|
*/
|
|
@@ -6331,6 +6543,7 @@ export const chunksOf: {
|
|
|
6331
6543
|
* @see {@link split} — split into a given number of groups
|
|
6332
6544
|
* @see {@link window} — sliding windows
|
|
6333
6545
|
*
|
|
6546
|
+
* @stability stable
|
|
6334
6547
|
* @category splitting
|
|
6335
6548
|
* @since 2.0.0
|
|
6336
6549
|
*/
|
|
@@ -6362,6 +6575,7 @@ export const chunksOf: {
|
|
|
6362
6575
|
* @see {@link split} — split into a given number of groups
|
|
6363
6576
|
* @see {@link window} — sliding windows
|
|
6364
6577
|
*
|
|
6578
|
+
* @stability stable
|
|
6365
6579
|
* @category splitting
|
|
6366
6580
|
* @since 2.0.0
|
|
6367
6581
|
*/
|
|
@@ -6400,6 +6614,7 @@ export const chunksOf: {
|
|
|
6400
6614
|
*
|
|
6401
6615
|
* @see {@link chunksOf} — non-overlapping chunks
|
|
6402
6616
|
*
|
|
6617
|
+
* @stability stable
|
|
6403
6618
|
* @category splitting
|
|
6404
6619
|
* @since 3.13.2
|
|
6405
6620
|
*/
|
|
@@ -6430,6 +6645,7 @@ export const window: {
|
|
|
6430
6645
|
*
|
|
6431
6646
|
* @see {@link chunksOf} — non-overlapping chunks
|
|
6432
6647
|
*
|
|
6648
|
+
* @stability stable
|
|
6433
6649
|
* @category splitting
|
|
6434
6650
|
* @since 3.13.2
|
|
6435
6651
|
*/
|
|
@@ -6460,6 +6676,7 @@ export const window: {
|
|
|
6460
6676
|
*
|
|
6461
6677
|
* @see {@link chunksOf} — non-overlapping chunks
|
|
6462
6678
|
*
|
|
6679
|
+
* @stability stable
|
|
6463
6680
|
* @category splitting
|
|
6464
6681
|
* @since 3.13.2
|
|
6465
6682
|
*/
|
|
@@ -6503,6 +6720,7 @@ export const window: {
|
|
|
6503
6720
|
* @see {@link group} for grouping adjacent elements with `Equal.equivalence()`
|
|
6504
6721
|
* @see {@link groupBy} for grouping all elements into a record by key, regardless of adjacency
|
|
6505
6722
|
*
|
|
6723
|
+
* @stability stable
|
|
6506
6724
|
* @category grouping
|
|
6507
6725
|
* @since 2.0.0
|
|
6508
6726
|
*/
|
|
@@ -6534,6 +6752,7 @@ export const groupWith: {
|
|
|
6534
6752
|
* @see {@link group} for grouping adjacent elements with `Equal.equivalence()`
|
|
6535
6753
|
* @see {@link groupBy} for grouping all elements into a record by key, regardless of adjacency
|
|
6536
6754
|
*
|
|
6755
|
+
* @stability stable
|
|
6537
6756
|
* @category grouping
|
|
6538
6757
|
* @since 2.0.0
|
|
6539
6758
|
*/
|
|
@@ -6565,6 +6784,7 @@ export const groupWith: {
|
|
|
6565
6784
|
* @see {@link group} for grouping adjacent elements with `Equal.equivalence()`
|
|
6566
6785
|
* @see {@link groupBy} for grouping all elements into a record by key, regardless of adjacency
|
|
6567
6786
|
*
|
|
6787
|
+
* @stability stable
|
|
6568
6788
|
* @category grouping
|
|
6569
6789
|
* @since 2.0.0
|
|
6570
6790
|
*/
|
|
@@ -6614,6 +6834,7 @@ export const groupWith: {
|
|
|
6614
6834
|
* @see {@link groupWith} — use custom equality
|
|
6615
6835
|
* @see {@link groupBy} — group by a key function into a record
|
|
6616
6836
|
*
|
|
6837
|
+
* @stability stable
|
|
6617
6838
|
* @category grouping
|
|
6618
6839
|
* @since 2.0.0
|
|
6619
6840
|
*/
|
|
@@ -6658,6 +6879,7 @@ export const group: <A>(self: NonEmptyReadonlyArray<A>) => NonEmptyArray<NonEmpt
|
|
|
6658
6879
|
* @see {@link group} — group adjacent equal elements
|
|
6659
6880
|
* @see {@link groupWith} — group adjacent elements by custom equality
|
|
6660
6881
|
*
|
|
6882
|
+
* @stability stable
|
|
6661
6883
|
* @category grouping
|
|
6662
6884
|
* @since 2.0.0
|
|
6663
6885
|
*/
|
|
@@ -6699,6 +6921,7 @@ export const groupBy: {
|
|
|
6699
6921
|
* @see {@link group} — group adjacent equal elements
|
|
6700
6922
|
* @see {@link groupWith} — group adjacent elements by custom equality
|
|
6701
6923
|
*
|
|
6924
|
+
* @stability stable
|
|
6702
6925
|
* @category grouping
|
|
6703
6926
|
* @since 2.0.0
|
|
6704
6927
|
*/
|
|
@@ -6740,6 +6963,7 @@ export const groupBy: {
|
|
|
6740
6963
|
* @see {@link group} — group adjacent equal elements
|
|
6741
6964
|
* @see {@link groupWith} — group adjacent elements by custom equality
|
|
6742
6965
|
*
|
|
6966
|
+
* @stability stable
|
|
6743
6967
|
* @category grouping
|
|
6744
6968
|
* @since 2.0.0
|
|
6745
6969
|
*/
|
|
@@ -6821,6 +7045,7 @@ const hashBucketsHas = (buckets: HashBuckets, value: unknown): boolean => {
|
|
|
6821
7045
|
* @see {@link intersectionWith} for keeping elements present in both arrays
|
|
6822
7046
|
* @see {@link differenceWith} for keeping elements present only in the first array
|
|
6823
7047
|
*
|
|
7048
|
+
* @stability stable
|
|
6824
7049
|
* @category set operations
|
|
6825
7050
|
* @since 2.0.0
|
|
6826
7051
|
*/
|
|
@@ -6846,6 +7071,7 @@ export const unionWith: {
|
|
|
6846
7071
|
* @see {@link intersectionWith} for keeping elements present in both arrays
|
|
6847
7072
|
* @see {@link differenceWith} for keeping elements present only in the first array
|
|
6848
7073
|
*
|
|
7074
|
+
* @stability stable
|
|
6849
7075
|
* @category set operations
|
|
6850
7076
|
* @since 2.0.0
|
|
6851
7077
|
*/
|
|
@@ -6874,6 +7100,7 @@ export const unionWith: {
|
|
|
6874
7100
|
* @see {@link intersectionWith} for keeping elements present in both arrays
|
|
6875
7101
|
* @see {@link differenceWith} for keeping elements present only in the first array
|
|
6876
7102
|
*
|
|
7103
|
+
* @stability stable
|
|
6877
7104
|
* @category set operations
|
|
6878
7105
|
* @since 2.0.0
|
|
6879
7106
|
*/
|
|
@@ -6903,6 +7130,7 @@ export const unionWith: {
|
|
|
6903
7130
|
* @see {@link intersectionWith} for keeping elements present in both arrays
|
|
6904
7131
|
* @see {@link differenceWith} for keeping elements present only in the first array
|
|
6905
7132
|
*
|
|
7133
|
+
* @stability stable
|
|
6906
7134
|
* @category set operations
|
|
6907
7135
|
* @since 2.0.0
|
|
6908
7136
|
*/
|
|
@@ -6932,6 +7160,7 @@ export const unionWith: {
|
|
|
6932
7160
|
* @see {@link intersectionWith} for keeping elements present in both arrays
|
|
6933
7161
|
* @see {@link differenceWith} for keeping elements present only in the first array
|
|
6934
7162
|
*
|
|
7163
|
+
* @stability stable
|
|
6935
7164
|
* @category set operations
|
|
6936
7165
|
* @since 2.0.0
|
|
6937
7166
|
*/
|
|
@@ -6969,6 +7198,7 @@ export const unionWith: {
|
|
|
6969
7198
|
* @see {@link intersection} — elements in both arrays
|
|
6970
7199
|
* @see {@link difference} — elements only in the first array
|
|
6971
7200
|
*
|
|
7201
|
+
* @stability stable
|
|
6972
7202
|
* @category set operations
|
|
6973
7203
|
* @since 2.0.0
|
|
6974
7204
|
*/
|
|
@@ -6989,6 +7219,7 @@ export const union: {
|
|
|
6989
7219
|
* @see {@link intersection} — elements in both arrays
|
|
6990
7220
|
* @see {@link difference} — elements only in the first array
|
|
6991
7221
|
*
|
|
7222
|
+
* @stability stable
|
|
6992
7223
|
* @category set operations
|
|
6993
7224
|
* @since 2.0.0
|
|
6994
7225
|
*/
|
|
@@ -7011,6 +7242,7 @@ export const union: {
|
|
|
7011
7242
|
* @see {@link intersection} — elements in both arrays
|
|
7012
7243
|
* @see {@link difference} — elements only in the first array
|
|
7013
7244
|
*
|
|
7245
|
+
* @stability stable
|
|
7014
7246
|
* @category set operations
|
|
7015
7247
|
* @since 2.0.0
|
|
7016
7248
|
*/
|
|
@@ -7031,6 +7263,7 @@ export const union: {
|
|
|
7031
7263
|
* @see {@link intersection} — elements in both arrays
|
|
7032
7264
|
* @see {@link difference} — elements only in the first array
|
|
7033
7265
|
*
|
|
7266
|
+
* @stability stable
|
|
7034
7267
|
* @category set operations
|
|
7035
7268
|
* @since 2.0.0
|
|
7036
7269
|
*/
|
|
@@ -7051,6 +7284,7 @@ export const union: {
|
|
|
7051
7284
|
* @see {@link intersection} — elements in both arrays
|
|
7052
7285
|
* @see {@link difference} — elements only in the first array
|
|
7053
7286
|
*
|
|
7287
|
+
* @stability stable
|
|
7054
7288
|
* @category set operations
|
|
7055
7289
|
* @since 2.0.0
|
|
7056
7290
|
*/
|
|
@@ -7092,6 +7326,7 @@ export const union: {
|
|
|
7092
7326
|
* @see {@link unionWith} for keeping values from either array with custom equality
|
|
7093
7327
|
* @see {@link differenceWith} for keeping values only from the first array with custom equality
|
|
7094
7328
|
*
|
|
7329
|
+
* @stability stable
|
|
7095
7330
|
* @category set operations
|
|
7096
7331
|
* @since 2.0.0
|
|
7097
7332
|
*/
|
|
@@ -7130,6 +7365,7 @@ export const intersectionWith = <A>(isEquivalent: (self: A, that: A) => boolean)
|
|
|
7130
7365
|
* @see {@link union} — elements in either array
|
|
7131
7366
|
* @see {@link difference} — elements only in the first array
|
|
7132
7367
|
*
|
|
7368
|
+
* @stability stable
|
|
7133
7369
|
* @category set operations
|
|
7134
7370
|
* @since 2.0.0
|
|
7135
7371
|
*/
|
|
@@ -7155,6 +7391,7 @@ export const intersection: {
|
|
|
7155
7391
|
* @see {@link union} — elements in either array
|
|
7156
7392
|
* @see {@link difference} — elements only in the first array
|
|
7157
7393
|
*
|
|
7394
|
+
* @stability stable
|
|
7158
7395
|
* @category set operations
|
|
7159
7396
|
* @since 2.0.0
|
|
7160
7397
|
*/
|
|
@@ -7180,6 +7417,7 @@ export const intersection: {
|
|
|
7180
7417
|
* @see {@link union} — elements in either array
|
|
7181
7418
|
* @see {@link difference} — elements only in the first array
|
|
7182
7419
|
*
|
|
7420
|
+
* @stability stable
|
|
7183
7421
|
* @category set operations
|
|
7184
7422
|
* @since 2.0.0
|
|
7185
7423
|
*/
|
|
@@ -7215,6 +7453,7 @@ export const intersection: {
|
|
|
7215
7453
|
* @see {@link unionWith} for keeping values from either array with custom equality
|
|
7216
7454
|
* @see {@link intersectionWith} for keeping values present in both arrays with custom equality
|
|
7217
7455
|
*
|
|
7456
|
+
* @stability stable
|
|
7218
7457
|
* @category set operations
|
|
7219
7458
|
* @since 2.0.0
|
|
7220
7459
|
*/
|
|
@@ -7253,6 +7492,7 @@ export const differenceWith = <A>(isEquivalent: (self: A, that: A) => boolean):
|
|
|
7253
7492
|
* @see {@link union} — elements in either array
|
|
7254
7493
|
* @see {@link intersection} — elements in both arrays
|
|
7255
7494
|
*
|
|
7495
|
+
* @stability stable
|
|
7256
7496
|
* @category set operations
|
|
7257
7497
|
* @since 2.0.0
|
|
7258
7498
|
*/
|
|
@@ -7278,6 +7518,7 @@ export const difference: {
|
|
|
7278
7518
|
* @see {@link union} — elements in either array
|
|
7279
7519
|
* @see {@link intersection} — elements in both arrays
|
|
7280
7520
|
*
|
|
7521
|
+
* @stability stable
|
|
7281
7522
|
* @category set operations
|
|
7282
7523
|
* @since 2.0.0
|
|
7283
7524
|
*/
|
|
@@ -7303,6 +7544,7 @@ export const difference: {
|
|
|
7303
7544
|
* @see {@link union} — elements in either array
|
|
7304
7545
|
* @see {@link intersection} — elements in both arrays
|
|
7305
7546
|
*
|
|
7547
|
+
* @stability stable
|
|
7306
7548
|
* @category set operations
|
|
7307
7549
|
* @since 2.0.0
|
|
7308
7550
|
*/
|
|
@@ -7338,6 +7580,7 @@ export const difference: {
|
|
|
7338
7580
|
* @see {@link of} — create a single-element array
|
|
7339
7581
|
* @see {@link make} — create from multiple values
|
|
7340
7582
|
*
|
|
7583
|
+
* @stability stable
|
|
7341
7584
|
* @category constructors
|
|
7342
7585
|
* @since 2.0.0
|
|
7343
7586
|
*/
|
|
@@ -7357,6 +7600,7 @@ export const empty: <A = never>() => Array<A> = () => []
|
|
|
7357
7600
|
* @see {@link make} — create from multiple values
|
|
7358
7601
|
* @see {@link empty} — create an empty array
|
|
7359
7602
|
*
|
|
7603
|
+
* @stability stable
|
|
7360
7604
|
* @category constructors
|
|
7361
7605
|
* @since 2.0.0
|
|
7362
7606
|
*/
|
|
@@ -7366,6 +7610,7 @@ export const of = <A>(a: A): NonEmptyArray<A> => [a]
|
|
|
7366
7610
|
* Utility types for working with `ReadonlyArray` at the type level. Use these
|
|
7367
7611
|
* to infer element types, preserve non-emptiness, and flatten nested arrays.
|
|
7368
7612
|
*
|
|
7613
|
+
* @stability stable
|
|
7369
7614
|
* @since 2.0.0
|
|
7370
7615
|
*/
|
|
7371
7616
|
export declare namespace ReadonlyArray {
|
|
@@ -7503,6 +7748,7 @@ export declare namespace ReadonlyArray {
|
|
|
7503
7748
|
*
|
|
7504
7749
|
* @see {@link flatMap} — map and flatten
|
|
7505
7750
|
*
|
|
7751
|
+
* @stability stable
|
|
7506
7752
|
* @category mapping
|
|
7507
7753
|
* @since 2.0.0
|
|
7508
7754
|
*/
|
|
@@ -7529,6 +7775,7 @@ export const map: {
|
|
|
7529
7775
|
*
|
|
7530
7776
|
* @see {@link flatMap} — map and flatten
|
|
7531
7777
|
*
|
|
7778
|
+
* @stability stable
|
|
7532
7779
|
* @category mapping
|
|
7533
7780
|
* @since 2.0.0
|
|
7534
7781
|
*/
|
|
@@ -7555,6 +7802,7 @@ export const map: {
|
|
|
7555
7802
|
*
|
|
7556
7803
|
* @see {@link flatMap} — map and flatten
|
|
7557
7804
|
*
|
|
7805
|
+
* @stability stable
|
|
7558
7806
|
* @category mapping
|
|
7559
7807
|
* @since 2.0.0
|
|
7560
7808
|
*/
|
|
@@ -7585,6 +7833,7 @@ export const map: {
|
|
|
7585
7833
|
* @see {@link map} — transform without flattening
|
|
7586
7834
|
* @see {@link flatten} — flatten without mapping
|
|
7587
7835
|
*
|
|
7836
|
+
* @stability stable
|
|
7588
7837
|
* @category sequencing
|
|
7589
7838
|
* @since 2.0.0
|
|
7590
7839
|
*/
|
|
@@ -7613,6 +7862,7 @@ export const flatMap: {
|
|
|
7613
7862
|
* @see {@link map} — transform without flattening
|
|
7614
7863
|
* @see {@link flatten} — flatten without mapping
|
|
7615
7864
|
*
|
|
7865
|
+
* @stability stable
|
|
7616
7866
|
* @category sequencing
|
|
7617
7867
|
* @since 2.0.0
|
|
7618
7868
|
*/
|
|
@@ -7641,6 +7891,7 @@ export const flatMap: {
|
|
|
7641
7891
|
* @see {@link map} — transform without flattening
|
|
7642
7892
|
* @see {@link flatten} — flatten without mapping
|
|
7643
7893
|
*
|
|
7894
|
+
* @stability stable
|
|
7644
7895
|
* @category sequencing
|
|
7645
7896
|
* @since 2.0.0
|
|
7646
7897
|
*/
|
|
@@ -7672,6 +7923,7 @@ export const flatMap: {
|
|
|
7672
7923
|
* @see {@link map} — transform without flattening
|
|
7673
7924
|
* @see {@link flatten} — flatten without mapping
|
|
7674
7925
|
*
|
|
7926
|
+
* @stability stable
|
|
7675
7927
|
* @category sequencing
|
|
7676
7928
|
* @since 2.0.0
|
|
7677
7929
|
*/
|
|
@@ -7711,6 +7963,7 @@ export const flatMap: {
|
|
|
7711
7963
|
*
|
|
7712
7964
|
* @see {@link flatMap} — map then flatten in one step
|
|
7713
7965
|
*
|
|
7966
|
+
* @stability stable
|
|
7714
7967
|
* @category sequencing
|
|
7715
7968
|
* @since 2.0.0
|
|
7716
7969
|
*/
|
|
@@ -7736,6 +7989,7 @@ export const flatten: <const S extends ReadonlyArray<ReadonlyArray<any>>>(self:
|
|
|
7736
7989
|
* @see {@link fromOption} — convert a single Option
|
|
7737
7990
|
* @see {@link getSuccesses} — extract successes from Results
|
|
7738
7991
|
*
|
|
7992
|
+
* @stability stable
|
|
7739
7993
|
* @category filtering
|
|
7740
7994
|
* @since 2.0.0
|
|
7741
7995
|
*/
|
|
@@ -7772,6 +8026,7 @@ export const getSomes: <T extends Iterable<Option.Option<X>>, X = any>(
|
|
|
7772
8026
|
* @see {@link getSuccesses} — extract success values
|
|
7773
8027
|
* @see {@link separate} — split into successes and failures
|
|
7774
8028
|
*
|
|
8029
|
+
* @stability stable
|
|
7775
8030
|
* @category filtering
|
|
7776
8031
|
* @since 4.0.0
|
|
7777
8032
|
*/
|
|
@@ -7808,6 +8063,7 @@ export const getFailures = <T extends Iterable<Result.Result<any, any>>>(
|
|
|
7808
8063
|
* @see {@link getFailures} — extract failure values
|
|
7809
8064
|
* @see {@link separate} — split into successes and failures
|
|
7810
8065
|
*
|
|
8066
|
+
* @stability stable
|
|
7811
8067
|
* @category filtering
|
|
7812
8068
|
* @since 4.0.0
|
|
7813
8069
|
*/
|
|
@@ -7847,6 +8103,7 @@ export const getSuccesses = <T extends Iterable<Result.Result<any, any>>>(
|
|
|
7847
8103
|
* @see {@link filter} — keep original elements matching a predicate
|
|
7848
8104
|
* @see {@link partition} for keeping both successes and failures
|
|
7849
8105
|
*
|
|
8106
|
+
* @stability stable
|
|
7850
8107
|
* @category filtering
|
|
7851
8108
|
* @since 2.0.0
|
|
7852
8109
|
*/
|
|
@@ -7874,6 +8131,7 @@ export const filterMap: {
|
|
|
7874
8131
|
* @see {@link filter} — keep original elements matching a predicate
|
|
7875
8132
|
* @see {@link partition} for keeping both successes and failures
|
|
7876
8133
|
*
|
|
8134
|
+
* @stability stable
|
|
7877
8135
|
* @category filtering
|
|
7878
8136
|
* @since 2.0.0
|
|
7879
8137
|
*/
|
|
@@ -7901,6 +8159,7 @@ export const filterMap: {
|
|
|
7901
8159
|
* @see {@link filter} — keep original elements matching a predicate
|
|
7902
8160
|
* @see {@link partition} for keeping both successes and failures
|
|
7903
8161
|
*
|
|
8162
|
+
* @stability stable
|
|
7904
8163
|
* @category filtering
|
|
7905
8164
|
* @since 2.0.0
|
|
7906
8165
|
*/
|
|
@@ -7941,6 +8200,7 @@ export const filterMap: {
|
|
|
7941
8200
|
* @see {@link partition} — split into matching and non-matching
|
|
7942
8201
|
* @see {@link filterMap} for transforming while filtering
|
|
7943
8202
|
*
|
|
8203
|
+
* @stability stable
|
|
7944
8204
|
* @category filtering
|
|
7945
8205
|
* @since 2.0.0
|
|
7946
8206
|
*/
|
|
@@ -7969,6 +8229,7 @@ export const filter: {
|
|
|
7969
8229
|
* @see {@link partition} — split into matching and non-matching
|
|
7970
8230
|
* @see {@link filterMap} for transforming while filtering
|
|
7971
8231
|
*
|
|
8232
|
+
* @stability stable
|
|
7972
8233
|
* @category filtering
|
|
7973
8234
|
* @since 2.0.0
|
|
7974
8235
|
*/
|
|
@@ -7997,6 +8258,7 @@ export const filter: {
|
|
|
7997
8258
|
* @see {@link partition} — split into matching and non-matching
|
|
7998
8259
|
* @see {@link filterMap} for transforming while filtering
|
|
7999
8260
|
*
|
|
8261
|
+
* @stability stable
|
|
8000
8262
|
* @category filtering
|
|
8001
8263
|
* @since 2.0.0
|
|
8002
8264
|
*/
|
|
@@ -8025,6 +8287,7 @@ export const filter: {
|
|
|
8025
8287
|
* @see {@link partition} — split into matching and non-matching
|
|
8026
8288
|
* @see {@link filterMap} for transforming while filtering
|
|
8027
8289
|
*
|
|
8290
|
+
* @stability stable
|
|
8028
8291
|
* @category filtering
|
|
8029
8292
|
* @since 2.0.0
|
|
8030
8293
|
*/
|
|
@@ -8053,6 +8316,7 @@ export const filter: {
|
|
|
8053
8316
|
* @see {@link partition} — split into matching and non-matching
|
|
8054
8317
|
* @see {@link filterMap} for transforming while filtering
|
|
8055
8318
|
*
|
|
8319
|
+
* @stability stable
|
|
8056
8320
|
* @category filtering
|
|
8057
8321
|
* @since 2.0.0
|
|
8058
8322
|
*/
|
|
@@ -8097,6 +8361,7 @@ export const filter: {
|
|
|
8097
8361
|
* @see {@link filterMap} for discarding failures
|
|
8098
8362
|
* @see {@link separate} — split an iterable of `Result` values
|
|
8099
8363
|
*
|
|
8364
|
+
* @stability stable
|
|
8100
8365
|
* @category filtering
|
|
8101
8366
|
* @since 2.0.0
|
|
8102
8367
|
*/
|
|
@@ -8127,6 +8392,7 @@ export const partition: {
|
|
|
8127
8392
|
* @see {@link filterMap} for discarding failures
|
|
8128
8393
|
* @see {@link separate} — split an iterable of `Result` values
|
|
8129
8394
|
*
|
|
8395
|
+
* @stability stable
|
|
8130
8396
|
* @category filtering
|
|
8131
8397
|
* @since 2.0.0
|
|
8132
8398
|
*/
|
|
@@ -8157,6 +8423,7 @@ export const partition: {
|
|
|
8157
8423
|
* @see {@link filterMap} for discarding failures
|
|
8158
8424
|
* @see {@link separate} — split an iterable of `Result` values
|
|
8159
8425
|
*
|
|
8426
|
+
* @stability stable
|
|
8160
8427
|
* @category filtering
|
|
8161
8428
|
* @since 2.0.0
|
|
8162
8429
|
*/
|
|
@@ -8206,6 +8473,7 @@ export const partition: {
|
|
|
8206
8473
|
* @see {@link getSuccesses} — extract only successes
|
|
8207
8474
|
* @see {@link partition} for computing `Result` values while splitting
|
|
8208
8475
|
*
|
|
8476
|
+
* @stability stable
|
|
8209
8477
|
* @category filtering
|
|
8210
8478
|
* @since 2.0.0
|
|
8211
8479
|
*/
|
|
@@ -8238,6 +8506,7 @@ export const separate: <T extends Iterable<Result.Result<any, any>>>(
|
|
|
8238
8506
|
* @see {@link reduceRight} — fold from right to left
|
|
8239
8507
|
* @see {@link scan} — fold keeping intermediate values
|
|
8240
8508
|
*
|
|
8509
|
+
* @stability stable
|
|
8241
8510
|
* @category folding
|
|
8242
8511
|
* @since 2.0.0
|
|
8243
8512
|
*/
|
|
@@ -8264,6 +8533,7 @@ export const reduce: {
|
|
|
8264
8533
|
* @see {@link reduceRight} — fold from right to left
|
|
8265
8534
|
* @see {@link scan} — fold keeping intermediate values
|
|
8266
8535
|
*
|
|
8536
|
+
* @stability stable
|
|
8267
8537
|
* @category folding
|
|
8268
8538
|
* @since 2.0.0
|
|
8269
8539
|
*/
|
|
@@ -8290,6 +8560,7 @@ export const reduce: {
|
|
|
8290
8560
|
* @see {@link reduceRight} — fold from right to left
|
|
8291
8561
|
* @see {@link scan} — fold keeping intermediate values
|
|
8292
8562
|
*
|
|
8563
|
+
* @stability stable
|
|
8293
8564
|
* @category folding
|
|
8294
8565
|
* @since 2.0.0
|
|
8295
8566
|
*/
|
|
@@ -8322,6 +8593,7 @@ export const reduce: {
|
|
|
8322
8593
|
* @see {@link reduce} — fold from left to right
|
|
8323
8594
|
* @see {@link scanRight} — fold keeping intermediate values
|
|
8324
8595
|
*
|
|
8596
|
+
* @stability stable
|
|
8325
8597
|
* @category folding
|
|
8326
8598
|
* @since 2.0.0
|
|
8327
8599
|
*/
|
|
@@ -8348,6 +8620,7 @@ export const reduceRight: {
|
|
|
8348
8620
|
* @see {@link reduce} — fold from left to right
|
|
8349
8621
|
* @see {@link scanRight} — fold keeping intermediate values
|
|
8350
8622
|
*
|
|
8623
|
+
* @stability stable
|
|
8351
8624
|
* @category folding
|
|
8352
8625
|
* @since 2.0.0
|
|
8353
8626
|
*/
|
|
@@ -8374,6 +8647,7 @@ export const reduceRight: {
|
|
|
8374
8647
|
* @see {@link reduce} — fold from left to right
|
|
8375
8648
|
* @see {@link scanRight} — fold keeping intermediate values
|
|
8376
8649
|
*
|
|
8650
|
+
* @stability stable
|
|
8377
8651
|
* @category folding
|
|
8378
8652
|
* @since 2.0.0
|
|
8379
8653
|
*/
|
|
@@ -8401,6 +8675,7 @@ export const reduceRight: {
|
|
|
8401
8675
|
*
|
|
8402
8676
|
* @see {@link liftOption} — lift an Option-returning function
|
|
8403
8677
|
*
|
|
8678
|
+
* @stability stable
|
|
8404
8679
|
* @category lifting
|
|
8405
8680
|
* @since 2.0.0
|
|
8406
8681
|
*/
|
|
@@ -8423,6 +8698,7 @@ export const liftPredicate: { // Note: I intentionally avoid using the NoInfer p
|
|
|
8423
8698
|
*
|
|
8424
8699
|
* @see {@link liftOption} — lift an Option-returning function
|
|
8425
8700
|
*
|
|
8701
|
+
* @stability stable
|
|
8426
8702
|
* @category lifting
|
|
8427
8703
|
* @since 2.0.0
|
|
8428
8704
|
*/
|
|
@@ -8455,6 +8731,7 @@ export const liftPredicate: { // Note: I intentionally avoid using the NoInfer p
|
|
|
8455
8731
|
* @see {@link liftPredicate} — lift a boolean predicate
|
|
8456
8732
|
* @see {@link liftResult} — lift a Result-returning function
|
|
8457
8733
|
*
|
|
8734
|
+
* @stability stable
|
|
8458
8735
|
* @category lifting
|
|
8459
8736
|
* @since 2.0.0
|
|
8460
8737
|
*/
|
|
@@ -8484,6 +8761,7 @@ export const liftOption = <A extends Array<unknown>, B>(
|
|
|
8484
8761
|
* @see {@link liftNullishOr} — lift a nullable-returning function
|
|
8485
8762
|
* @see {@link fromOption} — convert from Option
|
|
8486
8763
|
*
|
|
8764
|
+
* @stability stable
|
|
8487
8765
|
* @category converting
|
|
8488
8766
|
* @since 4.0.0
|
|
8489
8767
|
*/
|
|
@@ -8510,6 +8788,7 @@ export const fromNullishOr = <A>(a: A): Array<NonNullable<A>> => a == null ? emp
|
|
|
8510
8788
|
* @see {@link fromNullishOr} — convert a single nullable value
|
|
8511
8789
|
* @see {@link liftOption} — lift an Option-returning function
|
|
8512
8790
|
*
|
|
8791
|
+
* @stability stable
|
|
8513
8792
|
* @category lifting
|
|
8514
8793
|
* @since 4.0.0
|
|
8515
8794
|
*/
|
|
@@ -8538,6 +8817,7 @@ export const liftNullishOr = <A extends Array<unknown>, B>(
|
|
|
8538
8817
|
* @see {@link flatMap} for mapping each element to an array and flattening
|
|
8539
8818
|
* @see {@link fromNullishOr} for converting a single nullable value to an array
|
|
8540
8819
|
*
|
|
8820
|
+
* @stability stable
|
|
8541
8821
|
* @category sequencing
|
|
8542
8822
|
* @since 4.0.0
|
|
8543
8823
|
*/
|
|
@@ -8562,6 +8842,7 @@ export const flatMapNullishOr: {
|
|
|
8562
8842
|
* @see {@link flatMap} for mapping each element to an array and flattening
|
|
8563
8843
|
* @see {@link fromNullishOr} for converting a single nullable value to an array
|
|
8564
8844
|
*
|
|
8845
|
+
* @stability stable
|
|
8565
8846
|
* @category sequencing
|
|
8566
8847
|
* @since 4.0.0
|
|
8567
8848
|
*/
|
|
@@ -8586,6 +8867,7 @@ export const flatMapNullishOr: {
|
|
|
8586
8867
|
* @see {@link flatMap} for mapping each element to an array and flattening
|
|
8587
8868
|
* @see {@link fromNullishOr} for converting a single nullable value to an array
|
|
8588
8869
|
*
|
|
8870
|
+
* @stability stable
|
|
8589
8871
|
* @category sequencing
|
|
8590
8872
|
* @since 4.0.0
|
|
8591
8873
|
*/
|
|
@@ -8623,6 +8905,7 @@ export const flatMapNullishOr: {
|
|
|
8623
8905
|
* @see {@link liftOption} — lift an Option-returning function
|
|
8624
8906
|
* @see {@link liftPredicate} — lift a boolean predicate
|
|
8625
8907
|
*
|
|
8908
|
+
* @stability stable
|
|
8626
8909
|
* @category lifting
|
|
8627
8910
|
* @since 4.0.0
|
|
8628
8911
|
*/
|
|
@@ -8654,6 +8937,7 @@ export const liftResult = <A extends Array<unknown>, E, B>(
|
|
|
8654
8937
|
*
|
|
8655
8938
|
* @see {@link some} — test if any element matches
|
|
8656
8939
|
*
|
|
8940
|
+
* @stability stable
|
|
8657
8941
|
* @category guards
|
|
8658
8942
|
* @since 2.0.0
|
|
8659
8943
|
*/
|
|
@@ -8678,6 +8962,7 @@ export const every: {
|
|
|
8678
8962
|
*
|
|
8679
8963
|
* @see {@link some} — test if any element matches
|
|
8680
8964
|
*
|
|
8965
|
+
* @stability stable
|
|
8681
8966
|
* @category guards
|
|
8682
8967
|
* @since 2.0.0
|
|
8683
8968
|
*/
|
|
@@ -8702,6 +8987,7 @@ export const every: {
|
|
|
8702
8987
|
*
|
|
8703
8988
|
* @see {@link some} — test if any element matches
|
|
8704
8989
|
*
|
|
8990
|
+
* @stability stable
|
|
8705
8991
|
* @category guards
|
|
8706
8992
|
* @since 2.0.0
|
|
8707
8993
|
*/
|
|
@@ -8726,6 +9012,7 @@ export const every: {
|
|
|
8726
9012
|
*
|
|
8727
9013
|
* @see {@link some} — test if any element matches
|
|
8728
9014
|
*
|
|
9015
|
+
* @stability stable
|
|
8729
9016
|
* @category guards
|
|
8730
9017
|
* @since 2.0.0
|
|
8731
9018
|
*/
|
|
@@ -8750,6 +9037,7 @@ export const every: {
|
|
|
8750
9037
|
*
|
|
8751
9038
|
* @see {@link some} — test if any element matches
|
|
8752
9039
|
*
|
|
9040
|
+
* @stability stable
|
|
8753
9041
|
* @category guards
|
|
8754
9042
|
* @since 2.0.0
|
|
8755
9043
|
*/
|
|
@@ -8776,6 +9064,7 @@ export const every: {
|
|
|
8776
9064
|
* @see {@link every} — test if all elements match
|
|
8777
9065
|
* @see {@link contains} — test for a specific value
|
|
8778
9066
|
*
|
|
9067
|
+
* @stability stable
|
|
8779
9068
|
* @category guards
|
|
8780
9069
|
* @since 2.0.0
|
|
8781
9070
|
*/
|
|
@@ -8796,6 +9085,7 @@ export const some: {
|
|
|
8796
9085
|
* @see {@link every} — test if all elements match
|
|
8797
9086
|
* @see {@link contains} — test for a specific value
|
|
8798
9087
|
*
|
|
9088
|
+
* @stability stable
|
|
8799
9089
|
* @category guards
|
|
8800
9090
|
* @since 2.0.0
|
|
8801
9091
|
*/
|
|
@@ -8816,6 +9106,7 @@ export const some: {
|
|
|
8816
9106
|
* @see {@link every} — test if all elements match
|
|
8817
9107
|
* @see {@link contains} — test for a specific value
|
|
8818
9108
|
*
|
|
9109
|
+
* @stability stable
|
|
8819
9110
|
* @category guards
|
|
8820
9111
|
* @since 2.0.0
|
|
8821
9112
|
*/
|
|
@@ -8849,6 +9140,7 @@ export const some: {
|
|
|
8849
9140
|
*
|
|
8850
9141
|
* @see {@link scan} for keeping intermediate accumulator values during a fold
|
|
8851
9142
|
*
|
|
9143
|
+
* @stability stable
|
|
8852
9144
|
* @category mapping
|
|
8853
9145
|
* @since 2.0.0
|
|
8854
9146
|
*/
|
|
@@ -8876,6 +9168,7 @@ export const extend: {
|
|
|
8876
9168
|
*
|
|
8877
9169
|
* @see {@link scan} for keeping intermediate accumulator values during a fold
|
|
8878
9170
|
*
|
|
9171
|
+
* @stability stable
|
|
8879
9172
|
* @category mapping
|
|
8880
9173
|
* @since 2.0.0
|
|
8881
9174
|
*/
|
|
@@ -8903,6 +9196,7 @@ export const extend: {
|
|
|
8903
9196
|
*
|
|
8904
9197
|
* @see {@link scan} for keeping intermediate accumulator values during a fold
|
|
8905
9198
|
*
|
|
9199
|
+
* @stability stable
|
|
8906
9200
|
* @category mapping
|
|
8907
9201
|
* @since 2.0.0
|
|
8908
9202
|
*/
|
|
@@ -8927,6 +9221,7 @@ export const extend: {
|
|
|
8927
9221
|
* @see {@link max} — find the maximum
|
|
8928
9222
|
* @see {@link sort} — sort the entire array
|
|
8929
9223
|
*
|
|
9224
|
+
* @stability stable
|
|
8930
9225
|
* @category getters
|
|
8931
9226
|
* @since 2.0.0
|
|
8932
9227
|
*/
|
|
@@ -8946,6 +9241,7 @@ export const min: {
|
|
|
8946
9241
|
* @see {@link max} — find the maximum
|
|
8947
9242
|
* @see {@link sort} — sort the entire array
|
|
8948
9243
|
*
|
|
9244
|
+
* @stability stable
|
|
8949
9245
|
* @category getters
|
|
8950
9246
|
* @since 2.0.0
|
|
8951
9247
|
*/
|
|
@@ -8965,6 +9261,7 @@ export const min: {
|
|
|
8965
9261
|
* @see {@link max} — find the maximum
|
|
8966
9262
|
* @see {@link sort} — sort the entire array
|
|
8967
9263
|
*
|
|
9264
|
+
* @stability stable
|
|
8968
9265
|
* @category getters
|
|
8969
9266
|
* @since 2.0.0
|
|
8970
9267
|
*/
|
|
@@ -8986,6 +9283,7 @@ export const min: {
|
|
|
8986
9283
|
* @see {@link min} — find the minimum
|
|
8987
9284
|
* @see {@link sort} — sort the entire array
|
|
8988
9285
|
*
|
|
9286
|
+
* @stability stable
|
|
8989
9287
|
* @category getters
|
|
8990
9288
|
* @since 2.0.0
|
|
8991
9289
|
*/
|
|
@@ -9005,6 +9303,7 @@ export const max: {
|
|
|
9005
9303
|
* @see {@link min} — find the minimum
|
|
9006
9304
|
* @see {@link sort} — sort the entire array
|
|
9007
9305
|
*
|
|
9306
|
+
* @stability stable
|
|
9008
9307
|
* @category getters
|
|
9009
9308
|
* @since 2.0.0
|
|
9010
9309
|
*/
|
|
@@ -9024,6 +9323,7 @@ export const max: {
|
|
|
9024
9323
|
* @see {@link min} — find the minimum
|
|
9025
9324
|
* @see {@link sort} — sort the entire array
|
|
9026
9325
|
*
|
|
9326
|
+
* @stability stable
|
|
9027
9327
|
* @category getters
|
|
9028
9328
|
* @since 2.0.0
|
|
9029
9329
|
*/
|
|
@@ -9046,6 +9346,7 @@ export const max: {
|
|
|
9046
9346
|
* @see {@link makeBy} — generate from index
|
|
9047
9347
|
* @see {@link range} — generate a numeric range
|
|
9048
9348
|
*
|
|
9349
|
+
* @stability stable
|
|
9049
9350
|
* @category constructors
|
|
9050
9351
|
* @since 2.0.0
|
|
9051
9352
|
*/
|
|
@@ -9081,6 +9382,7 @@ export const unfold = <B, A>(b: B, f: (b: B) => Option.Option<readonly [A, B]>):
|
|
|
9081
9382
|
*
|
|
9082
9383
|
* @see {@link makeEquivalence} — create an equivalence for arrays
|
|
9083
9384
|
*
|
|
9385
|
+
* @stability stable
|
|
9084
9386
|
* @category instances
|
|
9085
9387
|
* @since 4.0.0
|
|
9086
9388
|
*/
|
|
@@ -9103,6 +9405,7 @@ export const makeOrder: <A>(O: Order.Order<A>) => Order.Order<ReadonlyArray<A>>
|
|
|
9103
9405
|
*
|
|
9104
9406
|
* @see {@link makeOrder} — create an ordering for arrays
|
|
9105
9407
|
*
|
|
9408
|
+
* @stability stable
|
|
9106
9409
|
* @category instances
|
|
9107
9410
|
* @since 4.0.0
|
|
9108
9411
|
*/
|
|
@@ -9131,6 +9434,7 @@ export const makeEquivalence: <A>(
|
|
|
9131
9434
|
*
|
|
9132
9435
|
* @see {@link map} for transforming each element into a new array
|
|
9133
9436
|
*
|
|
9437
|
+
* @stability stable
|
|
9134
9438
|
* @category traversing
|
|
9135
9439
|
* @since 2.0.0
|
|
9136
9440
|
*/
|
|
@@ -9156,6 +9460,7 @@ export const forEach: {
|
|
|
9156
9460
|
*
|
|
9157
9461
|
* @see {@link map} for transforming each element into a new array
|
|
9158
9462
|
*
|
|
9463
|
+
* @stability stable
|
|
9159
9464
|
* @category traversing
|
|
9160
9465
|
* @since 2.0.0
|
|
9161
9466
|
*/
|
|
@@ -9181,6 +9486,7 @@ export const forEach: {
|
|
|
9181
9486
|
*
|
|
9182
9487
|
* @see {@link map} for transforming each element into a new array
|
|
9183
9488
|
*
|
|
9489
|
+
* @stability stable
|
|
9184
9490
|
* @category traversing
|
|
9185
9491
|
* @since 2.0.0
|
|
9186
9492
|
*/
|
|
@@ -9207,6 +9513,7 @@ export const forEach: {
|
|
|
9207
9513
|
* @see {@link dedupe} — uses default equality
|
|
9208
9514
|
* @see {@link dedupeAdjacentWith} — only dedupes consecutive elements
|
|
9209
9515
|
*
|
|
9516
|
+
* @stability stable
|
|
9210
9517
|
* @category deduplication
|
|
9211
9518
|
* @since 2.0.0
|
|
9212
9519
|
*/
|
|
@@ -9231,6 +9538,7 @@ export const dedupeWith: {
|
|
|
9231
9538
|
* @see {@link dedupe} — uses default equality
|
|
9232
9539
|
* @see {@link dedupeAdjacentWith} — only dedupes consecutive elements
|
|
9233
9540
|
*
|
|
9541
|
+
* @stability stable
|
|
9234
9542
|
* @category deduplication
|
|
9235
9543
|
* @since 2.0.0
|
|
9236
9544
|
*/
|
|
@@ -9257,6 +9565,7 @@ export const dedupeWith: {
|
|
|
9257
9565
|
* @see {@link dedupe} — uses default equality
|
|
9258
9566
|
* @see {@link dedupeAdjacentWith} — only dedupes consecutive elements
|
|
9259
9567
|
*
|
|
9568
|
+
* @stability stable
|
|
9260
9569
|
* @category deduplication
|
|
9261
9570
|
* @since 2.0.0
|
|
9262
9571
|
*/
|
|
@@ -9284,6 +9593,7 @@ export const dedupeWith: {
|
|
|
9284
9593
|
* @see {@link dedupe} — uses default equality
|
|
9285
9594
|
* @see {@link dedupeAdjacentWith} — only dedupes consecutive elements
|
|
9286
9595
|
*
|
|
9596
|
+
* @stability stable
|
|
9287
9597
|
* @category deduplication
|
|
9288
9598
|
* @since 2.0.0
|
|
9289
9599
|
*/
|
|
@@ -9322,6 +9632,7 @@ export const dedupeWith: {
|
|
|
9322
9632
|
* @see {@link dedupeWith} — use custom equality
|
|
9323
9633
|
* @see {@link dedupeAdjacent} — only dedupes consecutive elements
|
|
9324
9634
|
*
|
|
9635
|
+
* @stability stable
|
|
9325
9636
|
* @category deduplication
|
|
9326
9637
|
* @since 2.0.0
|
|
9327
9638
|
*/
|
|
@@ -9366,6 +9677,7 @@ export const dedupe = <S extends Iterable<any>>(
|
|
|
9366
9677
|
* @see {@link dedupeAdjacent} — uses default equality
|
|
9367
9678
|
* @see {@link dedupeWith} — dedupes all duplicates, not just adjacent
|
|
9368
9679
|
*
|
|
9680
|
+
* @stability stable
|
|
9369
9681
|
* @category deduplication
|
|
9370
9682
|
* @since 2.0.0
|
|
9371
9683
|
*/
|
|
@@ -9394,6 +9706,7 @@ export const dedupeAdjacentWith: {
|
|
|
9394
9706
|
* @see {@link dedupeAdjacent} — uses default equality
|
|
9395
9707
|
* @see {@link dedupeWith} — dedupes all duplicates, not just adjacent
|
|
9396
9708
|
*
|
|
9709
|
+
* @stability stable
|
|
9397
9710
|
* @category deduplication
|
|
9398
9711
|
* @since 2.0.0
|
|
9399
9712
|
*/
|
|
@@ -9422,6 +9735,7 @@ export const dedupeAdjacentWith: {
|
|
|
9422
9735
|
* @see {@link dedupeAdjacent} — uses default equality
|
|
9423
9736
|
* @see {@link dedupeWith} — dedupes all duplicates, not just adjacent
|
|
9424
9737
|
*
|
|
9738
|
+
* @stability stable
|
|
9425
9739
|
* @category deduplication
|
|
9426
9740
|
* @since 2.0.0
|
|
9427
9741
|
*/
|
|
@@ -9457,6 +9771,7 @@ export const dedupeAdjacentWith: {
|
|
|
9457
9771
|
* @see {@link dedupeAdjacentWith} — use custom equality
|
|
9458
9772
|
* @see {@link dedupe} — remove all duplicates
|
|
9459
9773
|
*
|
|
9774
|
+
* @stability stable
|
|
9460
9775
|
* @category deduplication
|
|
9461
9776
|
* @since 2.0.0
|
|
9462
9777
|
*/
|
|
@@ -9475,6 +9790,7 @@ export const dedupeAdjacent: <A>(self: Iterable<A>) => Array<A> = dedupeAdjacent
|
|
|
9475
9790
|
*
|
|
9476
9791
|
* @see {@link intersperse} — insert separator elements without joining
|
|
9477
9792
|
*
|
|
9793
|
+
* @stability stable
|
|
9478
9794
|
* @category folding
|
|
9479
9795
|
* @since 2.0.0
|
|
9480
9796
|
*/
|
|
@@ -9492,6 +9808,7 @@ export const join: {
|
|
|
9492
9808
|
*
|
|
9493
9809
|
* @see {@link intersperse} — insert separator elements without joining
|
|
9494
9810
|
*
|
|
9811
|
+
* @stability stable
|
|
9495
9812
|
* @category folding
|
|
9496
9813
|
* @since 2.0.0
|
|
9497
9814
|
*/
|
|
@@ -9509,6 +9826,7 @@ export const join: {
|
|
|
9509
9826
|
*
|
|
9510
9827
|
* @see {@link intersperse} — insert separator elements without joining
|
|
9511
9828
|
*
|
|
9829
|
+
* @stability stable
|
|
9512
9830
|
* @category folding
|
|
9513
9831
|
* @since 2.0.0
|
|
9514
9832
|
*/
|
|
@@ -9541,6 +9859,7 @@ export const join: {
|
|
|
9541
9859
|
* @see {@link scan} — when you only need the accumulated results (not the final state)
|
|
9542
9860
|
* @see {@link reduce} — when you only need the final accumulated value
|
|
9543
9861
|
*
|
|
9862
|
+
* @stability stable
|
|
9544
9863
|
* @category folding
|
|
9545
9864
|
* @since 2.0.0
|
|
9546
9865
|
*/
|
|
@@ -9571,6 +9890,7 @@ export const mapAccum: {
|
|
|
9571
9890
|
* @see {@link scan} — when you only need the accumulated results (not the final state)
|
|
9572
9891
|
* @see {@link reduce} — when you only need the final accumulated value
|
|
9573
9892
|
*
|
|
9893
|
+
* @stability stable
|
|
9574
9894
|
* @category folding
|
|
9575
9895
|
* @since 2.0.0
|
|
9576
9896
|
*/
|
|
@@ -9601,6 +9921,7 @@ export const mapAccum: {
|
|
|
9601
9921
|
* @see {@link scan} — when you only need the accumulated results (not the final state)
|
|
9602
9922
|
* @see {@link reduce} — when you only need the final accumulated value
|
|
9603
9923
|
*
|
|
9924
|
+
* @stability stable
|
|
9604
9925
|
* @category folding
|
|
9605
9926
|
* @since 2.0.0
|
|
9606
9927
|
*/
|
|
@@ -9649,6 +9970,7 @@ export const mapAccum: {
|
|
|
9649
9970
|
*
|
|
9650
9971
|
* @see {@link cartesian} for returning tuples instead of applying a combiner
|
|
9651
9972
|
*
|
|
9973
|
+
* @stability stable
|
|
9652
9974
|
* @category combining
|
|
9653
9975
|
* @since 2.0.0
|
|
9654
9976
|
*/
|
|
@@ -9677,6 +9999,7 @@ export const cartesianWith: {
|
|
|
9677
9999
|
*
|
|
9678
10000
|
* @see {@link cartesian} for returning tuples instead of applying a combiner
|
|
9679
10001
|
*
|
|
10002
|
+
* @stability stable
|
|
9680
10003
|
* @category combining
|
|
9681
10004
|
* @since 2.0.0
|
|
9682
10005
|
*/
|
|
@@ -9705,6 +10028,7 @@ export const cartesianWith: {
|
|
|
9705
10028
|
*
|
|
9706
10029
|
* @see {@link cartesian} for returning tuples instead of applying a combiner
|
|
9707
10030
|
*
|
|
10031
|
+
* @stability stable
|
|
9708
10032
|
* @category combining
|
|
9709
10033
|
* @since 2.0.0
|
|
9710
10034
|
*/
|
|
@@ -9737,6 +10061,7 @@ export const cartesianWith: {
|
|
|
9737
10061
|
*
|
|
9738
10062
|
* @see {@link cartesianWith} — apply a combiner to each pair
|
|
9739
10063
|
*
|
|
10064
|
+
* @stability stable
|
|
9740
10065
|
* @category combining
|
|
9741
10066
|
* @since 2.0.0
|
|
9742
10067
|
*/
|
|
@@ -9763,6 +10088,7 @@ export const cartesian: {
|
|
|
9763
10088
|
*
|
|
9764
10089
|
* @see {@link cartesianWith} — apply a combiner to each pair
|
|
9765
10090
|
*
|
|
10091
|
+
* @stability stable
|
|
9766
10092
|
* @category combining
|
|
9767
10093
|
* @since 2.0.0
|
|
9768
10094
|
*/
|
|
@@ -9789,6 +10115,7 @@ export const cartesian: {
|
|
|
9789
10115
|
*
|
|
9790
10116
|
* @see {@link cartesianWith} — apply a combiner to each pair
|
|
9791
10117
|
*
|
|
10118
|
+
* @stability stable
|
|
9792
10119
|
* @category combining
|
|
9793
10120
|
* @since 2.0.0
|
|
9794
10121
|
*/
|
|
@@ -9834,6 +10161,7 @@ export const cartesian: {
|
|
|
9834
10161
|
* @see {@link bindTo} — start a pipeline by naming the first array
|
|
9835
10162
|
* @see {@link let_ let} — introduce a plain computed value
|
|
9836
10163
|
*
|
|
10164
|
+
* @stability stable
|
|
9837
10165
|
* @category constructors
|
|
9838
10166
|
* @since 3.2.0
|
|
9839
10167
|
*/
|
|
@@ -9869,6 +10197,7 @@ export const Do: ReadonlyArray<{}> = of({})
|
|
|
9869
10197
|
* @see {@link bindTo} — name the first array in a pipeline
|
|
9870
10198
|
* @see {@link let_ let} — add a plain computed value
|
|
9871
10199
|
*
|
|
10200
|
+
* @stability stable
|
|
9872
10201
|
* @category sequencing
|
|
9873
10202
|
* @since 3.2.0
|
|
9874
10203
|
*/
|
|
@@ -9903,6 +10232,7 @@ export const bind: {
|
|
|
9903
10232
|
* @see {@link bindTo} — name the first array in a pipeline
|
|
9904
10233
|
* @see {@link let_ let} — add a plain computed value
|
|
9905
10234
|
*
|
|
10235
|
+
* @stability stable
|
|
9906
10236
|
* @category sequencing
|
|
9907
10237
|
* @since 3.2.0
|
|
9908
10238
|
*/
|
|
@@ -9939,6 +10269,7 @@ export const bind: {
|
|
|
9939
10269
|
* @see {@link bindTo} — name the first array in a pipeline
|
|
9940
10270
|
* @see {@link let_ let} — add a plain computed value
|
|
9941
10271
|
*
|
|
10272
|
+
* @stability stable
|
|
9942
10273
|
* @category sequencing
|
|
9943
10274
|
* @since 3.2.0
|
|
9944
10275
|
*/
|
|
@@ -9973,6 +10304,7 @@ export const bind: {
|
|
|
9973
10304
|
* @see {@link Do} — start with an empty scope
|
|
9974
10305
|
* @see {@link bind} — add another array variable to the scope
|
|
9975
10306
|
*
|
|
10307
|
+
* @stability stable
|
|
9976
10308
|
* @category mapping
|
|
9977
10309
|
* @since 3.2.0
|
|
9978
10310
|
*/
|
|
@@ -10001,6 +10333,7 @@ export const bindTo: {
|
|
|
10001
10333
|
* @see {@link Do} — start with an empty scope
|
|
10002
10334
|
* @see {@link bind} — add another array variable to the scope
|
|
10003
10335
|
*
|
|
10336
|
+
* @stability stable
|
|
10004
10337
|
* @category mapping
|
|
10005
10338
|
* @since 3.2.0
|
|
10006
10339
|
*/
|
|
@@ -10029,6 +10362,7 @@ export const bindTo: {
|
|
|
10029
10362
|
* @see {@link Do} — start with an empty scope
|
|
10030
10363
|
* @see {@link bind} — add another array variable to the scope
|
|
10031
10364
|
*
|
|
10365
|
+
* @stability stable
|
|
10032
10366
|
* @category mapping
|
|
10033
10367
|
* @since 3.2.0
|
|
10034
10368
|
*/
|
|
@@ -10077,24 +10411,34 @@ export {
|
|
|
10077
10411
|
* @see {@link Do} — start a do-notation pipeline
|
|
10078
10412
|
* @see {@link bind} — introduce an array variable (produces cartesian product)
|
|
10079
10413
|
*
|
|
10414
|
+
* @stability stable
|
|
10080
10415
|
* @category mapping
|
|
10081
10416
|
* @since 3.2.0
|
|
10082
10417
|
*/
|
|
10083
10418
|
let_ as let
|
|
10084
10419
|
}
|
|
10085
10420
|
|
|
10086
|
-
const
|
|
10421
|
+
const combineConcat = <A>(a: ReadonlyArray<A>, b: ReadonlyArray<A>): Array<A> => a.concat(b)
|
|
10422
|
+
|
|
10423
|
+
const combineAllConcat = <A>(collection: Iterable<ReadonlyArray<A>>): Array<A> => {
|
|
10424
|
+
let out: Array<A> = []
|
|
10425
|
+
for (const value of collection) {
|
|
10426
|
+
out = out.concat(value)
|
|
10427
|
+
}
|
|
10428
|
+
return out
|
|
10429
|
+
}
|
|
10087
10430
|
|
|
10088
10431
|
/**
|
|
10089
10432
|
* Returns a `Reducer` that combines `ReadonlyArray` values by concatenation.
|
|
10090
10433
|
*
|
|
10091
10434
|
* @see {@link makeReducerConcat} — mutable `Array` variant
|
|
10092
10435
|
*
|
|
10436
|
+
* @stability stable
|
|
10093
10437
|
* @category folding
|
|
10094
10438
|
* @since 4.0.0
|
|
10095
10439
|
*/
|
|
10096
10440
|
export function getReadonlyReducerConcat<A>(): Reducer.Reducer<ReadonlyArray<A>> {
|
|
10097
|
-
return
|
|
10441
|
+
return Reducer.make<ReadonlyArray<A>>(combineConcat, [], combineAllConcat)
|
|
10098
10442
|
}
|
|
10099
10443
|
|
|
10100
10444
|
/**
|
|
@@ -10102,11 +10446,12 @@ export function getReadonlyReducerConcat<A>(): Reducer.Reducer<ReadonlyArray<A>>
|
|
|
10102
10446
|
*
|
|
10103
10447
|
* @see {@link getReadonlyReducerConcat} — readonly variant
|
|
10104
10448
|
*
|
|
10449
|
+
* @stability stable
|
|
10105
10450
|
* @category folding
|
|
10106
10451
|
* @since 4.0.0
|
|
10107
10452
|
*/
|
|
10108
10453
|
export function makeReducerConcat<A>(): Reducer.Reducer<Array<A>> {
|
|
10109
|
-
return
|
|
10454
|
+
return Reducer.make<Array<A>>(combineConcat, [], combineAllConcat)
|
|
10110
10455
|
}
|
|
10111
10456
|
|
|
10112
10457
|
/**
|
|
@@ -10132,6 +10477,7 @@ export function makeReducerConcat<A>(): Reducer.Reducer<Array<A>> {
|
|
|
10132
10477
|
*
|
|
10133
10478
|
* @see {@link filter} — when you need the matching elements, not just the count
|
|
10134
10479
|
*
|
|
10480
|
+
* @stability stable
|
|
10135
10481
|
* @category folding
|
|
10136
10482
|
* @since 3.16.0
|
|
10137
10483
|
*/
|
|
@@ -10159,6 +10505,7 @@ export const countBy: {
|
|
|
10159
10505
|
*
|
|
10160
10506
|
* @see {@link filter} — when you need the matching elements, not just the count
|
|
10161
10507
|
*
|
|
10508
|
+
* @stability stable
|
|
10162
10509
|
* @category folding
|
|
10163
10510
|
* @since 3.16.0
|
|
10164
10511
|
*/
|
|
@@ -10186,6 +10533,7 @@ export const countBy: {
|
|
|
10186
10533
|
*
|
|
10187
10534
|
* @see {@link filter} — when you need the matching elements, not just the count
|
|
10188
10535
|
*
|
|
10536
|
+
* @stability stable
|
|
10189
10537
|
* @category folding
|
|
10190
10538
|
* @since 3.16.0
|
|
10191
10539
|
*/
|