MCPcopy Create free account
hub / github.com/effect-app/libs / refine

Method refine

repos/effect/packages/effect/src/Optic.ts:1086–1088  ·  view source on GitHub ↗
(refinement: (a: A) => a is B, annotations?: Schema.Annotations.Filter)

Source from the content-addressed store, hash-verified

1084 return bs
1085 }),
1086 // SET: bs must match the number of focusable elements
1087 (bs, s) =>
1088 Result.flatMap(this.getResult(s), (as) => {
1089 // 1) collect focusable indices
1090 const idxs: Array<number> = []
1091 for (let i = 0; i < as.length; i++) {

Callers 1

notUndefinedMethod · 0.95

Calls 2

makeFunction · 0.70
composeFunction · 0.70

Tested by

no test coverage detected