x-lang

← Index

x/core/logic

Boolean logic, structural equality, and derived comparisons.

boolean? stays with the type-predicate cohort transitionally; equal?/>/<=/>= are

keep-list operators. default-to and until live on the Fn class.

boolean?

Test whether a value is a boolean.

Parameters:

Returns: BOOL — True if x is #t or #f

equal?

Structural equality: numbers by value, strings by content, pairs and vectors element-wise (deep), else identity.

Vectors compare elementwise (handler installed by x/type/vector); class instances compare by identity.

Parameters:

Returns: BOOL — True if a and b are structurally equal

>

Test whether a is greater than b.

Parameters:

Returns: BOOL — True if a is greater than b

<=

Test whether a is less than or equal to b.

Parameters:

Returns: BOOL — True if a is less than or equal to b

>=

Test whether a is greater than or equal to b.

Parameters:

Returns: BOOL — True if a is greater than or equal to b