plainfp - v0.1.1
    Preparing search index...

    Function build

    • Seed a ResultAsync Do-style builder: an empty success scope. Chain field (fallible async steps) and value (pure computed fields, sync or async) onto it, then finish with ResultAsync.map. A fresh ok({}) is returned each call.

      Steps run sequentially — each awaits the previous and sees its bindings. For independent concurrent work prefer all.

      Returns ResultAsyncType<Record<never, never>, never>

      pipe(
      build(),
      field("user", () => fetchUser(id)),
      field("orders", ({ user }) => fetchOrders(user.id)),
      value("count", ({ orders }) => orders.length),
      map(({ user, count }) => `${user.name}: ${count}`),
      )