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

Function applyToLastLink

packages/effect/src/SchemaAST.ts:4445–4447  ·  view source on GitHub ↗
(f: (ast: AST) => AST)

Source from the content-addressed store, hash-verified

4443
4444/** @internal */
4445export function applyToLastLink(f: (ast: AST) => AST) {
4446 return <A extends AST>(ast: A): A => ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, f)) : ast
4447}
4448
4449/** @internal */
4450export function replaceContextLastLink<A extends AST>(ast: A, context: Context): A {

Callers 2

replaceContextLastLinkFunction · 0.85
setContextFlagFunction · 0.85

Calls 2

replaceEncodingFunction · 0.85
updateLastLinkFunction · 0.85

Tested by

no test coverage detected