@effect/data
Advanced tools
Comparing version 0.18.1 to 0.18.2
@@ -152,6 +152,7 @@ "use strict"; | ||
const isTag = u => typeof u === "object" && u !== null && TagTypeId in u; | ||
/** @internal */ | ||
exports.isTag = isTag; | ||
const empty = () => makeContext(new Map()); | ||
const _empty = /*#__PURE__*/makeContext( /*#__PURE__*/new Map()); | ||
/** @internal */ | ||
const empty = () => _empty; | ||
/** @internal */ | ||
exports.empty = empty; | ||
@@ -158,0 +159,0 @@ const make = (tag, service) => makeContext(new Map([[tag, service]])); |
@@ -28,6 +28,7 @@ "use strict"; | ||
}, PatchProto); | ||
const _empty = /*#__PURE__*/Object.create(EmptyProto); | ||
/** | ||
* @internal | ||
*/ | ||
const empty = () => Object.create(EmptyProto); | ||
const empty = () => _empty; | ||
exports.empty = empty; | ||
@@ -34,0 +35,0 @@ const AndThenProto = /*#__PURE__*/Object.setPrototypeOf({ |
@@ -30,6 +30,7 @@ "use strict"; | ||
}, PatchProto); | ||
const _empty = /*#__PURE__*/Object.create(EmptyProto); | ||
/** | ||
* @internal | ||
*/ | ||
const empty = () => Object.create(EmptyProto); | ||
const empty = () => _empty; | ||
exports.empty = empty; | ||
@@ -36,0 +37,0 @@ const AndThenProto = /*#__PURE__*/Object.setPrototypeOf({ |
@@ -31,4 +31,5 @@ "use strict"; | ||
}, PatchProto); | ||
const _empty = /*#__PURE__*/Object.create(EmptyProto); | ||
/** @internal */ | ||
const empty = () => Object.create(EmptyProto); | ||
const empty = () => _empty; | ||
exports.empty = empty; | ||
@@ -35,0 +36,0 @@ const AndThenProto = /*#__PURE__*/Object.setPrototypeOf({ |
@@ -30,4 +30,5 @@ "use strict"; | ||
}, PatchProto); | ||
const _empty = /*#__PURE__*/Object.create(EmptyProto); | ||
/** @internal */ | ||
const empty = () => Object.create(EmptyProto); | ||
const empty = () => _empty; | ||
exports.empty = empty; | ||
@@ -34,0 +35,0 @@ const AndThenProto = /*#__PURE__*/Object.setPrototypeOf({ |
@@ -31,4 +31,5 @@ "use strict"; | ||
}, PatchProto); | ||
const _empty = /*#__PURE__*/Object.create(EmptyProto); | ||
/** @internal */ | ||
const empty = () => Object.create(EmptyProto); | ||
const empty = () => _empty; | ||
exports.empty = empty; | ||
@@ -35,0 +36,0 @@ const AndThenProto = /*#__PURE__*/Object.setPrototypeOf({ |
@@ -136,4 +136,5 @@ "use strict"; | ||
}; | ||
const _empty = /*#__PURE__*/makeImpl(false, 0, /*#__PURE__*/new Node.EmptyNode(), 0); | ||
/** @internal */ | ||
const empty = () => makeImpl(false, 0, new Node.EmptyNode(), 0); | ||
const empty = () => _empty; | ||
/** @internal */ | ||
@@ -140,0 +141,0 @@ exports.empty = empty; |
@@ -58,6 +58,7 @@ "use strict"; | ||
const isHashSet = u => (0, _Predicate.isObject)(u) && HashSetTypeId in u; | ||
/** @internal */ | ||
exports.isHashSet = isHashSet; | ||
const empty = () => makeImpl(HM.empty()); | ||
const _empty = /*#__PURE__*/makeImpl( /*#__PURE__*/HM.empty()); | ||
/** @internal */ | ||
const empty = () => _empty; | ||
/** @internal */ | ||
exports.empty = empty; | ||
@@ -64,0 +65,0 @@ const fromIterable = elements => { |
{ | ||
"name": "@effect/data", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"description": "Functional programming in TypeScript", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -153,4 +153,6 @@ import type * as C from "@effect/data/Context" | ||
const _empty = makeContext(new Map()) | ||
/** @internal */ | ||
export const empty = (): C.Context<never> => makeContext<never>(new Map()) | ||
export const empty = (): C.Context<never> => _empty | ||
@@ -157,0 +159,0 @@ /** @internal */ |
@@ -33,6 +33,8 @@ import * as Chunk from "@effect/data/Chunk" | ||
const _empty = Object.create(EmptyProto) | ||
/** | ||
* @internal | ||
*/ | ||
export const empty = <Value, Patch>(): Differ.Differ.Chunk.Patch<Value, Patch> => Object.create(EmptyProto) | ||
export const empty = <Value, Patch>(): Differ.Differ.Chunk.Patch<Value, Patch> => _empty | ||
@@ -39,0 +41,0 @@ interface AndThen<Value, Patch> extends Differ.Differ.Chunk.Patch<Value, Patch> { |
@@ -34,6 +34,8 @@ import * as Chunk from "@effect/data/Chunk" | ||
const _empty = Object.create(EmptyProto) | ||
/** | ||
* @internal | ||
*/ | ||
export const empty = <Input, Output>(): Differ.Context.Patch<Input, Output> => Object.create(EmptyProto) | ||
export const empty = <Input, Output>(): Differ.Context.Patch<Input, Output> => _empty | ||
@@ -40,0 +42,0 @@ /** @internal */ |
@@ -34,4 +34,6 @@ import * as Chunk from "@effect/data/Chunk" | ||
const _empty = Object.create(EmptyProto) | ||
/** @internal */ | ||
export const empty = <Key, Value, Patch>(): Differ.Differ.HashMap.Patch<Key, Value, Patch> => Object.create(EmptyProto) | ||
export const empty = <Key, Value, Patch>(): Differ.Differ.HashMap.Patch<Key, Value, Patch> => _empty | ||
@@ -38,0 +40,0 @@ interface AndThen<Key, Value, Patch> extends Differ.Differ.HashMap.Patch<Key, Value, Patch> { |
@@ -34,4 +34,6 @@ import * as Chunk from "@effect/data/Chunk" | ||
const _empty = Object.create(EmptyProto) | ||
/** @internal */ | ||
export const empty = <Value>(): Differ.HashSet.Patch<Value> => Object.create(EmptyProto) | ||
export const empty = <Value>(): Differ.HashSet.Patch<Value> => _empty | ||
@@ -38,0 +40,0 @@ interface AndThen<Value> extends Differ.HashSet.Patch<Value> { |
@@ -34,2 +34,4 @@ import * as Chunk from "@effect/data/Chunk" | ||
const _empty = Object.create(EmptyProto) | ||
/** @internal */ | ||
@@ -41,3 +43,3 @@ export const empty = <Value, Value2, Patch, Patch2>(): Differ.Or.Patch< | ||
Patch2 | ||
> => Object.create(EmptyProto) | ||
> => _empty | ||
@@ -44,0 +46,0 @@ /** @internal */ |
@@ -176,4 +176,6 @@ import * as Equal from "@effect/data/Equal" | ||
const _empty = makeImpl<never, never>(false, 0, new Node.EmptyNode(), 0) | ||
/** @internal */ | ||
export const empty = <K = never, V = never>(): HM.HashMap<K, V> => makeImpl<K, V>(false, 0, new Node.EmptyNode(), 0) | ||
export const empty = <K = never, V = never>(): HM.HashMap<K, V> => _empty | ||
@@ -180,0 +182,0 @@ /** @internal */ |
@@ -67,4 +67,6 @@ import * as Equal from "@effect/data/Equal" | ||
const _empty = makeImpl<never>(HM.empty()) | ||
/** @internal */ | ||
export const empty = <A = never>(): HS.HashSet<A> => makeImpl(HM.empty<A, unknown>()) | ||
export const empty = <A = never>(): HS.HashSet<A> => _empty | ||
@@ -71,0 +73,0 @@ /** @internal */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3012665
64047