X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fnumbers.lisp;h=fac1b02aa91c81a36e3b1d741bffab28810de24a;hb=104ee7ee303efa16e415f5e75df635ac54dba733;hp=8e7e6ed0a9d2a3b461008e275281a5b097848a0d;hpb=667ec9d494530079bef28e8589dd0d3274b935ec;p=sbcl.git diff --git a/src/code/numbers.lisp b/src/code/numbers.lisp index 8e7e6ed..fac1b02 100644 --- a/src/code/numbers.lisp +++ b/src/code/numbers.lisp @@ -67,11 +67,11 @@ (let ((var (first vars)) (cases (sort cases #'type-test-order :key #'car))) `((typecase ,var - ,@(mapcar #'(lambda (case) - `(,(first case) - ,@(generate-number-dispatch (rest vars) - (rest error-tags) - (cdr case)))) + ,@(mapcar (lambda (case) + `(,(first case) + ,@(generate-number-dispatch (rest vars) + (rest error-tags) + (cdr case)))) cases) (t (go ,(first error-tags)))))) cases)) @@ -227,7 +227,7 @@ (defun complex (realpart &optional (imagpart 0)) #!+sb-doc - "Builds a complex number from the specified components." + "Return a complex number with the specified real and imaginary components." (flet ((%%make-complex (realpart imagpart) (cond #!+long-float ((and (typep realpart 'long-float) @@ -251,7 +251,7 @@ (defun realpart (number) #!+sb-doc - "Extracts the real part of a number." + "Extract the real part of a number." (typecase number #!+long-float ((complex long-float) @@ -267,7 +267,7 @@ (defun imagpart (number) #!+sb-doc - "Extracts the imaginary part of a number." + "Extract the imaginary part of a number." (typecase number #!+long-float ((complex long-float) @@ -329,8 +329,8 @@ (defun - (number &rest more-numbers) #!+sb-doc - "Subtracts the second and all subsequent arguments from the first. - With one arg, negates it." + "Subtract the second and all subsequent arguments from the first; + or with one argument, negate the first argument." (if more-numbers (do ((nlist more-numbers (cdr nlist)) (result number)) @@ -879,12 +879,12 @@ nil (macrolet ((foo (&rest stuff) `(typecase obj2 - ,@(mapcar #'(lambda (foo) - (let ((type (car foo)) - (fn (cadr foo))) - `(,type - (and (typep obj1 ',type) - (,fn obj1 obj2))))) + ,@(mapcar (lambda (foo) + (let ((type (car foo)) + (fn (cadr foo))) + `(,type + (and (typep obj1 ',type) + (,fn obj1 obj2))))) stuff)))) (foo (single-float eql)