Bind a pure computed field onto the builder scope. fn receives the accumulated scope and returns a plain value — it never short-circuits.
fn
Dual API — works data-first or curried for use in pipe.
pipe
pipe( build(), field("user", () => findUser(id)), value("greeting", ({ user }) => `Hi ${user.name}`), map(({ greeting }) => greeting), ) Copy
pipe( build(), field("user", () => findUser(id)), value("greeting", ({ user }) => `Hi ${user.name}`), map(({ greeting }) => greeting), )
Bind a pure computed field onto the builder scope.
fnreceives the accumulated scope and returns a plain value — it never short-circuits.Dual API — works data-first or curried for use in
pipe.