From 306a1fa256014f258cc7de58764d3609425bfdd6 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Sat, 1 Oct 2016 18:29:51 -0400 Subject: [PATCH] Added more documentation --- docs/api/primitives.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/api/primitives.md b/docs/api/primitives.md index c79ec9b1..b10cdf30 100644 --- a/docs/api/primitives.md +++ b/docs/api/primitives.md @@ -81,24 +81,33 @@ For more information see the [R7RS Scheme Specification](../r7rs.pdf) #\* (* z1 ...) +Return the product of the arguments. #+ (+ z1 ...) +Return the sum of the arguments. #- (- z) (- z1 z2 ...) +With two or more arguments return their difference. With one argument return the additive inverse. #/ (/ z) (/ z1 z2 ...) +With two or more arguments return the quotient of the arguments. With one argument return the multiplicative inverse. #< (< x1 x2 ...) +Return `#t` if the arguments are monotonically increasing, or `#f` otherwise. #<= (<= x1 x2 ...) +Return `#t` if the arguments are monotonically non-decreasing, or `#f` otherwise. #= (= x1 x2 ...) +Return `#t` if the arguments are equal, or `#f` otherwise. #> (> x1 x2 ...) +Return `#t` if the arguments are monotonically decreasing, or `#f` otherwise. #>= (>= x1 x2 ...) +Return `#t` if the arguments are monotonically non-increasing, or `#f` otherwise. #apply (apply proc arg1 ... args) The `apply` procedure calls `proc` with the elements of the list `(append (list arg1 ...) args)` as the actual arguments.