package preface

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

Signature

type ('a, 'b) t = ('a, 'b) Core.t

The type held by the Bifunctor.

val replace_fst : 'a -> ('b, 'c) t -> ('a, 'c) t

Create a new ('a, 'b) t, replacing all values in the ('c, 'b) t by given a value of 'a.

val replace_snd : 'a -> ('b, 'c) t -> ('b, 'a) t

Create a new ('b, 'a) t, replacing all values in the ('b, 'c) t by given a value of 'a.

OCaml

Innovation. Community. Security.