MCPcopy
hub / github.com/Effect-TS/effect / set

Function set

packages/effect/src/Schema.ts:7882–7892  ·  view source on GitHub ↗

@ignore

(value: Value)

Source from the content-addressed store, hash-verified

7880
7881/** @ignore */
7882function set<Value extends Schema.Any>(value: Value): Set$<Value> {
7883 return transform(
7884 Array$(value),
7885 SetFromSelf(typeSchema(asSchema(value))),
7886 {
7887 strict: true,
7888 decode: (i) => new Set(i),
7889 encode: (a) => Array.from(a)
7890 }
7891 )
7892}
7893
7894export {
7895 /**

Callers 7

fromIterableFunction · 0.70
MutableHashMap.tsFile · 0.70
MutableRef.tsFile · 0.70
SortedMap.tsFile · 0.70
fromIterableFunction · 0.50
hashMap.tsFile · 0.50
tMap.tsFile · 0.50

Calls 5

typeSchemaFunction · 0.85
asSchemaFunction · 0.85
transformInterface · 0.70
Array$Function · 0.70
SetFromSelfFunction · 0.70

Tested by

no test coverage detected