Skip to content
New issue

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

Update lisp doc and examples #428

Merged
merged 12 commits into from
Nov 1, 2022
Merged

Update lisp doc and examples #428

merged 12 commits into from
Nov 1, 2022

Conversation

vinc
Copy link
Owner

@vinc vinc commented Oct 29, 2022

No description provided.

@vinc
Copy link
Owner Author

vinc commented Oct 29, 2022

> (define (or x y) (if x true (if y true false)))
or

> (or (= (/ 4 2) 2) (= (/ 4 0) 2))
Error: Division by zero

> (define-macro (or x y) `(if ,x true (if ,y true false)))
or

> (or (= (/ 4 2) 2) (= (/ 4 0) 2))
true

@vinc
Copy link
Owner Author

vinc commented Oct 30, 2022

> (expand (let (x y) (1 2) (+ x y)))
((function (x y) (+ x y)) 1 2)

> (let (x y) (1 2) (+ x y))
3

@vinc vinc marked this pull request as ready for review November 1, 2022 10:02
@vinc vinc merged commit ab9b488 into trunk Nov 1, 2022
@vinc vinc deleted the feature/update-lisp-doc branch November 1, 2022 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant