Fixed subtraction regression; added new subtraction unit test.
This commit is contained in:
parent
62ebaf9819
commit
d34d891211
5 changed files with 203 additions and 6 deletions
|
|
@ -1,4 +1,9 @@
|
|||
(set! documentation (lambda (name)
|
||||
(:documentation (meta name))))
|
||||
(set! documentation (lambda (object)
|
||||
(cond ((= (type object) "LMDA")
|
||||
(let (d (nth 3 (source object)))
|
||||
(cond ((string? d) d)
|
||||
(t (source object)))))
|
||||
((member (type object) '("FUNC" "SPFM"))
|
||||
(:documentation (meta object))))))
|
||||
|
||||
(set! doc documentation)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
(set! > (lambda (a b)
|
||||
|
||||
)
|
||||
"`(> a b)`: Return `t` if `a` is a number greater than `b`, else `nil`."
|
||||
(not (negative? (- a b)))))
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
(set! nil? (lambda (o) (= o nil)))
|
||||
|
||||
(set! member (lambda
|
||||
(item collection)
|
||||
"Return `t` if this `item` is a member of this `collection`, else `nil`."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue