-
Notifications
You must be signed in to change notification settings - Fork 439
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
[sc-475] Add documentation for new match options #212
[sc-475] Add documentation for new match options #212
Conversation
This pull request has been linked to Shortcut Story #475: Add documentation for new match options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also fix the cspell warnings?
Either by adding nums
to the dictionary or by changing it to numbers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make
// If the number is 1, then return 1 | ||
1: 1 | ||
// Otherwise, and return the sum of (fib (n-2 + 1)) and (fib n-2) | ||
2+: (+ (fibonacci (+ n-2 1)) (fibonacci n-2)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the names like n-2
still binded automatically? If so, should probably still say it here. (unless another doc is saying that and i didn't find)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the successor pattern is 3+
then the bind will be var-3
and so on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, i know, but a doc should be saying that. The name n-2
is just appearing magically without explanation
No description provided.