Before implementing import name resolution, then after fic macro imports
This commit is contained in:
@@ -16,9 +16,6 @@
|
||||
|
||||
(define (built-n-function? x) "Checks if the argument is a built-in function." (= (type x) :built-in-function))
|
||||
|
||||
(define (apply fun seq) "Applies the funciton to the sequence, as in calls the function with
|
||||
ithe sequence as arguemens." (eval (pair fun seq)))
|
||||
|
||||
(define (end seq) "Returns the last pair in the sqeuence." (if (or (nil? seq) (not (pair? (rest seq)))) seq (end (rest seq))))
|
||||
|
||||
(define (last seq) "Returns the (first) of the last (pair) of the given sequence." (first (end seq)))
|
||||
@@ -52,7 +49,7 @@ elemens as argument to that function." (if (nil? seq) seq (pair (fun (first seq)
|
||||
function to the argument sequence. This only works correctly if
|
||||
the given function accepts a variable amount of parameters. If
|
||||
your funciton is limited to two arguments, use `reduce-binary'
|
||||
instead." (apply fun seq))
|
||||
instead." (eval (pair fun seq)))
|
||||
|
||||
(define (reduce-binary fun seq) "Takes a function and a sequence as arguments and applies the
|
||||
function to the argument sequence. reduce-binary applies the
|
||||
|
||||
Reference in New Issue
Block a user