package forester

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

Source file List_util.ml

1
2
3
4
5
6
7
8
let nub xs =
  let rec loop acc =
    function
    | [] -> List.rev acc
    | x :: xs ->
      let acc = if List.mem x acc then acc else x::acc in
      loop acc xs
  in
  loop [] xs
OCaml

Innovation. Community. Security.