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

second

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

A curried form of the pair constructor, starting with the second value of a pair.

@example
import * as P from "./pair.ts";
import { pipe } from "./fn.ts";

const result = pipe(
  37,
  P.second("Brandon"),
  P.map(n => n + 1),
); // [38, "Brandon"]
function second<B>(second: B): <A>(first: A) => Pair<A, B>;
§
second<B>(second: B): <A>(first: A) => Pair<A, B>
[src]

§Type Parameters

§Parameters

§
second: B
[src]

§Return Type

§
<A>(first: A) => Pair<A, B>
[src]