Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

bindTo

import { bindTo } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/either.ts";

Bind a value to a specific name in an Either computation. This is useful for creating named intermediate values.

@example
import * as E from "./either.ts";
import { pipe } from "./fn.ts";

const computation = pipe(
  E.right(42),
  E.bindTo("result"),
)
// Right({ result: 84 })
const bindTo: BindTo<KindEither>;