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

Function updateLastLink

packages/effect/src/SchemaAST.ts:4440–4442  ·  view source on GitHub ↗
(encoding: Encoding, f: (ast: AST) => AST)

Source from the content-addressed store, hash-verified

4438}
4439
4440function updateLastLink(encoding: Encoding, f: (ast: AST) => AST): Encoding {
4441 return mapLast(encoding, (link) => mapLink(link, f))
4442}
4443
4444/** @internal */
4445export function applyToLastLink(f: (ast: AST) => AST) {

Callers 2

applyToLastLinkFunction · 0.85
outFunction · 0.85

Calls 2

mapLastFunction · 0.85
mapLinkFunction · 0.85

Tested by

no test coverage detected