MCPcopy Create free account
hub / github.com/Effect-TS/effect / hashSetLink

Function hashSetLink

packages/effect/src/Schema.ts:15908–15916  ·  view source on GitHub ↗
(values: Schema<ReadonlyArray<Value>>)

Source from the content-addressed store, hash-verified

15906// -----------------------------------------------------------------------------
15907
15908function hashSetLink<Value>(values: Schema<ReadonlyArray<Value>>) {
15909 return link<HashSet_.HashSet<Value>>()(
15910 values,
15911 SchemaTransformation.transform({
15912 decode: HashSet_.fromIterable,
15913 encode: Arr.fromIterable
15914 })
15915 )
15916}
15917/**
15918 * Type-level representation returned by {@link HashSet}.
15919 *

Callers 1

HashSetFunction · 0.85

Calls 2

linkFunction · 0.70
transformMethod · 0.65

Tested by

no test coverage detected