Skip to content

comparison

TurtleKitty edited this page May 12, 2019 · 2 revisions

Vaquero comparison operators enforce a total order on atomic objects.
This is useful when comparing record keys.

null < false < true < number < symbol < string

>

Greater than.

(> 2 2) ; false
(> 2 3) ; false
(> 3 2) ; true

>=

Greater than or equal to.

(>= 2 2) ; true
(>= 2 3) ; false
(>= 3 2) ; true

<

Less than.

(< 2 2) ; false
(< 2 3) ; true
(< 3 2) ; false

<=

Less than or equal to.

(<= 2 2) ; true
(<= 2 3) ; true
(<= 3 2) ; false
Clone this wiki locally