package hack_parallel

  1. Overview
  2. Docs
Parallel and shared memory library

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.1.tar.gz
md5=ba7c72bc207e326b72e294fc76f6ad2c
sha512=5020d47f97bea2f88e2a40411894d03232a7f2282606926c93c7d4c96d72e94a966be852897a9b16f7e0893ba376512045abb9d93020a7c03c3def4f3d918f8e

doc/hack_parallel.hack_core/Hack_poly/index.html

Module Hack_polySource

Hack_poly is a convenient shorthand for Polymorphic_compare in the common case that one wants to use a polymorphic comparator directly in an expression, e.g. Hack_poly.equal a b.

include module type of struct include Hack_polymorphic_compare end
Sourceval compare : 'a -> 'a -> int
Sourceval ascending : 'a -> 'a -> int

ascending is identical to compare. descending x y = ascending y x. These are intended to be mnemonic when used like List.sort ~cmp:ascending and List.sort ~cmp:descending, since they cause the list to be sorted in ascending or descending order, respectively.

Sourceval descending : 'a -> 'a -> int
Sourceval (<) : 'a -> 'a -> bool
Sourceval (<=) : 'a -> 'a -> bool
Sourceval (>) : 'a -> 'a -> bool
Sourceval (>=) : 'a -> 'a -> bool
Sourceval (=) : 'a -> 'a -> bool
Sourceval (<>) : 'a -> 'a -> bool
Sourceval equal : 'a -> 'a -> bool
Sourceval min : 'a -> 'a -> 'a
Sourceval max : 'a -> 'a -> 'a
OCaml

Innovation. Community. Security.