package plebeia

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

Module Fs_impl.PathSource

Parameters

Signature

Sourcetype name = Name.t
Sourcetype t = name list

Path, a list of names

Sourceval length : t -> int

Length of the names of a path

Sourceval equal : t -> t -> bool
Sourceval to_string : t -> string
Sourceval pp : Format.formatter -> t -> unit
Sourceval to_segments : t -> Segment.t list
Sourceval of_segments : Segment.t list -> t option
Sourceval is_prefix_of : t -> t -> t option

is_prefix_of p1 p2 checks p1 is a prefix of p2. If it is, it returns Some p2' such that p1 @ p2' = p2. Otherwise it returns None.

OCaml

Innovation. Community. Security.