We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
; returns sign x (defun sign-of (x) (if (< x 0) (return-from sign-of -1)) (if (eq x 0) (return-from sign-of 0)) 1)
(sign-of 0.0)
1
0
eq
return-from
cond
typecase
cl:signum
Will fix this in my fork and submit a PR along with all other koan fixes.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
(sign-of 0.0)
;=>1
, not0
eq
on a number, which has undefined resultreturn-from
s instead of acond
or atypecase
cl:signum
existsWill fix this in my fork and submit a PR along with all other koan fixes.
The text was updated successfully, but these errors were encountered: