plainfp - v0.1.1
    Preparing search index...

    Function build

    • Seed an Option Do-style builder: an empty present scope. Chain field (steps that may be absent) and value (pure computed fields) onto it, then finish with Option.map. A fresh some({}) is returned each call.

      Use this for dependent chains where each step needs earlier bindings and nested flatMap callbacks drift rightward. For independent lookups prefer zip/all.

      Returns OptionType<Record<never, never>>

      pipe(
      build(),
      field("user", () => findUser(id)),
      field("plan", ({ user }) => findPlan(user.planId)),
      value("label", ({ plan }) => plan.name.toUpperCase()),
      map(({ label }) => label),
      )