package ppx_yojson

  1. Overview
  2. Docs

General puprose helper functions

val remove : idx:int -> 'a list -> 'a list

Return the given list without the element at index idx. If idx is not a valid index in the given list, it is returned as is.

val permutations : 'a list -> 'a list list

Return all the permutations of the given list

OCaml

Innovation. Community. Security.