package preface

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

Source file either.ml

1
2
3
let swap x =
  Stdlib.Either.fold ~left:Stdlib.Either.right ~right:Stdlib.Either.left x
;;
OCaml

Innovation. Community. Security.