package lsp

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

Source file nonempty_list.ml

1
2
3
4
5
6
7
8
# 1 "submodules/dune/otherlibs/stdune/nonempty_list.ml"
type 'a t = ( :: ) of 'a * 'a list

let of_list = function
  | [] -> None
  | x :: xs -> Some (x :: xs)

let to_list (x :: xs) = List.cons x xs
OCaml

Innovation. Community. Security.