package file_path

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

Source file operators.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
open! Core
include Operators_intf

(* The operators are synonyms for existing functions. No actual code should go in this
   file, all operators should also be exported by full names. *)

let ( ~/ ) = Relative.of_string
let ( !/ ) = Absolute.of_string
let ( ?/ ) = Path.of_string
let ( ~. ) = Part.of_string
let ( !/$ ) = Absolute.to_string
let ( ~/$ ) = Relative.to_string
let ( ?/$ ) = Path.to_string
let ( ~.$ ) = Part.to_string
let ( !/? ) = Path.of_absolute
let ( ~/? ) = Path.of_relative
let ( ~.? ) = Path.of_part_relative
let ( ~.~ ) = Relative.of_part
let ( /~/ ) = Relative.append
let ( /!/ ) = Absolute.append
let ( /?/ ) = Path.append
let ( /~. ) = Relative.append_part
let ( /!. ) = Absolute.append_part
let ( /?. ) = Path.append_part
let ( /~^ ) = Relative.append_to_basename_exn
let ( /!^ ) = Absolute.append_to_basename_exn
let ( /?^ ) = Path.append_to_basename_exn
let ( /.^ ) = Part.append_to_basename_exn
OCaml

Innovation. Community. Security.