Up

Module Array_permute

An internal-only module factored out due to a circular dependency between core_array and core_list. Contains code for permuting an array.

Signature

val swap : 'a array -> int -> int -> unit
val permute : ?random_state:Random.State.t -> 'a array -> unit

randomly permute an array.