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/iterable.ts";

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

@example
import * as I from "./iterable.ts";
import { pipe } from "./fn.ts";

const computation = pipe(
  I.wrap(42),
  I.bindTo("result"),
  I.map(({ result }) => result * 2)
);

const result = Array.from(computation); // [{ result: 84 }]
const bindTo: BindTo<KindIterable>;