package containers

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

Module CCInt32.InfixSource

Sourceval (+) : t -> t -> t

x + y is the sum of x and y. Addition.

Sourceval (-) : t -> t -> t

x - y is the difference of x and y. Subtraction.

Sourceval (~-) : t -> t

~- x is the negation of x. Unary negation.

Sourceval (*) : t -> t -> t

x * y is the product of x and y. Multiplication.

Sourceval (/) : t -> t -> t

x / y is the integer quotient of x and y. Integer division. Raise Division_by_zero if the second argument y is zero. This division rounds the real quotient of its arguments towards zero, as specified for Stdlib.(/).

Sourceval (mod) : t -> t -> t

x mod y is the integer remainder of x / y. If y <> zero, the result of x mod y satisfies the following properties: zero <= x mod y < abs y and x = ((x / y) * y) + (x mod y). If y = 0, x mod y raises Division_by_zero.

Sourceval (**) : t -> t -> t

Alias to pow

  • since 3.0
Sourceval (--) : t -> t -> t iter

Alias to range.

  • since 3.0
Sourceval (--^) : t -> t -> t iter

Alias to range'.

  • since 3.0
Sourceval (land) : t -> t -> t

x land y is the bitwise logical and of x and y.

Sourceval (lor) : t -> t -> t

x lor y is the bitwise logical or of x and y.

Sourceval (lxor) : t -> t -> t

x lxor y is the bitwise logical exclusive or of x and y.

Sourceval lnot : t -> t

lnot x is the bitwise logical negation of x (the bits of x are inverted).

Sourceval (lsl) : t -> int -> t

x lsl y shifts x to the left by y bits, filling in with zeroes. The result is unspecified if y < 0 or y >= 32.

Sourceval (lsr) : t -> int -> t

x lsr y shifts x to the right by y bits. This is a logical shift: zeroes are inserted in the vacated bits regardless of the sign of x. The result is unspecified if y < 0 or y >= 32.

Sourceval (asr) : t -> int -> t

x asr y shifts x to the right by y bits. This is an arithmetic shift: the sign bit of x is replicated and inserted in the vacated bits. The result is unspecified if y < 0 or y >= 32.

Sourceval (=) : t -> t -> bool
Sourceval (<>) : t -> t -> bool
Sourceval (>) : t -> t -> bool
Sourceval (>=) : t -> t -> bool
Sourceval (<=) : t -> t -> bool
Sourceval (<) : t -> t -> bool
OCaml

Innovation. Community. Security.