Functions Documentation
View Function Edit Function
Name gr
Syntax (gr a [b ... bn]) -> True if a > b > bn
Argument List a: The first expression you want to compare.
[b ... bn]: The next expressions you want to compare.
Returns boolean: The expressions are compared left to right. If there is any case where the left value is less or equal to the right value, `gr' will return Nil. Else it returns True.
Category logical operator
Description A comparison function that returns true if the left hand side is greated than the right hand side. The same as > in math.
Integers are compared by value, so (gr 2 1) -> True, but (gr 1 1) -> Nil
Strings are compared by alphabetical position, so (gr "b" "A") -> True, but (gr "b" "B") -> Nil
Lists are compared by length, so (gr '(2 2) '(2)) -> True, but (gr '(2) '(1 1)) -> Nil
It is advised to play around with this a bit to get a feeling of how things compare
Example
(gr 7 3)
Returns True.
(gr "Betel" "Betelgeuse")
Returns Nil.
(gr '(a a b) '(c d e))
Returns Nil.
(gr "B" "b")

Returns Nil.
Comment