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

Method pick

packages/effect/src/Optic.ts:1075–1077  ·  view source on GitHub ↗
(keys: any)

Source from the content-addressed store, hash-verified

1073 )
1074 }
1075 pick(keys: any) {
1076 return this.compose(makeLens(Struct.pick(keys), (p, a) => ({ ...Struct.omit(a, keys), ...p })))
1077 }
1078 omit(keys: any) {
1079 return this.compose(makeLens(Struct.omit(keys), (o, a) => ({ ...Struct.pick(a, keys), ...o })))
1080 }

Callers

nothing calls this directly

Calls 4

composeMethod · 0.95
makeLensFunction · 0.85
pickMethod · 0.65
omitMethod · 0.65

Tested by

no test coverage detected