package file_path

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

Module File_path.OperatorsSource

Prefix operators: of_string synonyms

These use two characters indicating the type of path being constructed: 1. absolute, relative, or either 2. compound or single-part

Sourceval (~/) : string -> Types.Relative.t
Sourceval (!/) : string -> Types.Absolute.t
Sourceval (?/) : string -> Types.Path.t
Sourceval (~.) : string -> Types.Part.t

Infix operators: append* synonyms

These use three characters: 1. '/' indicating some kind of path concatenation 2. type of left argument and result 3. type of right argument and kind of concatenation

These operators are left-associative and all share the same precedence.

append synonyms: end in '/' for a compound right argument

append_part synonyms: end in '.' for a single-part right argument

append_to_basename_exn synonyms: end in '^' for string concatenation

Sourceval (/~^) : Types.Relative.t -> string -> Types.Relative.t
Sourceval (/!^) : Types.Absolute.t -> string -> Types.Absolute.t
Sourceval (/?^) : Types.Path.t -> string -> Types.Path.t
Sourceval (/.^) : Types.Part.t -> string -> Types.Part.t