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

Function out

packages/effect/src/SchemaAST.ts:4456–4458  ·  view source on GitHub ↗
(ast: AST)

Source from the content-addressed store, hash-verified

4454/** @internal */
4455export function applyToSelfOrLastLinkEncoding(f: (ast: AST) => AST) {
4456 function out(ast: AST): AST {
4457 return ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, out)) : f(ast)
4458 }
4459 return memoize(out)
4460}
4461

Callers 1

flushFunction · 0.50

Calls 3

replaceEncodingFunction · 0.85
updateLastLinkFunction · 0.85
fFunction · 0.50

Tested by

no test coverage detected