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

max

import { max } from "https://raw.githubusercontent.com/baetheus/fun/main/combinable.ts";

Create a combinable fron an instance of Sortable that returns that maximum for the type being ordered. This Combinable functions identically to max from Sortable.

@example
import * as SG from "./combinable.ts";
import * as N from "./number.ts";
import { pipe } from "./fn.ts";

const { combine } = SG.max(N.SortableNumber);

const biggest = pipe(
  0,
  combine(-1),
  combine(10),
  combine(1000),
  combine(5),
  combine(9001)
); // biggest is over 9000
function max<A>(sortable: Sortable<A>): Combinable<A>;
§
max<A>(sortable: Sortable<A>): Combinable<A>
[src]

§Type Parameters

§Parameters

§
sortable: Sortable<A>
[src]

§Return Type