Functions Documentation | |

Name | leq |

Syntax | (leq 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 "greater" than the right value, `leq' will return Nil. Else it returns True. |

Category | logical operator |

Description | A comparison function that returns True if the left hand side is less than or equal to the right hand side. The same as <= in math. Integers are compared by value, so (leq 1 1) -> True, but (leq 2 1) -> Nil Strings are compared by alphabetical position, so (leq "a" "A") -> True, but (leq "b" "A") -> Nil Lists are compared by length, so (leq '(2) '(1 1)) -> True, but (leq '(1 1) '(2)) -> Nil |

Example |
(leq 7 3)Returns Nil. (leq "Betel" "Betelgeuse")Returns True. (leq '(a a b) '(c d e))Returns True. (leq "B" "b") Returns True. |

Comment |

Mod of the Month (September '17) |

Featured Mods (random) |

Uncharted |

Angelus-class Explorer |

Quality Mods (random) |

F.F.A.S. (Friendly Fire Avoidance System) for Autons |

Sadalmelik |

Balanced Mods (random) |

TX2 Centauri Module |

Molotok-class heavy gunship |