Gil_syntax.UnOp
GIL Unary Operators
type t =
| IUnaryMinus
Integer unary minus
*)| FUnaryMinus
Float unary minus
*)| UNot
Negation
*)| BitwiseNot
Bitwise negation
*)| M_isNaN
Test for NaN
*)| M_abs
Absolute value
*)| M_acos
Arccosine
*)| M_asin
Arcsine
*)| M_atan
Arctangent
*)| M_ceil
Ceiling
*)| M_cos
Cosine
*)| M_exp
Exponentiation
*)| M_floor
Flooring
*)| M_log
Natural logarithm
*)| M_round
Rounding
*)| M_sgn
Sign
*)| M_sin
Sine
*)| M_sqrt
Square root
*)| M_tan
Tangent
*)| ToStringOp
Converts a number (integer or float) to a string
*)| ToIntOp
Converts a float to an integer, Num -> Num !!
*)| ToUint16Op
Converts an integer to a 16-bit unsigned integer, Num -> Num !!
*)| ToUint32Op
Converts an integer to a 32-bit unsigned integer, Num -> Num !!
*)| ToInt32Op
Converts an integer to a 32-bit signed integer, Num -> Num !!
*)| ToNumberOp
Converts a string to a number
*)| TypeOf
| Car
Head of a list
*)| Cdr
Tail of a list
*)| LstLen
List length
*)| LstRev
List reverse
*)| SetToList
From set to list
*)| StrLen
String length
*)| NumToInt
Number to Integer - actual cast
*)| IntToNum
Integer to Number - actual cast
*)val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val str : t -> string
Printer