-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support use of
typle_fold!
in expressions
When `typle_fold!` is used in an expression, it must be enclosed in parentheses. If there is no iteration, then the initial expression is returned, and we need to ensure that operator precedence holds: `typle_fold!(1 + 0; i in .. => |c| c + 1) * 3` must become `(1 + 0) * 3`. If there is iteration, then `typle_fold!` expands to a `loop` that must be in parentheses to use in an expression: `(loop {...; break c;}) * 3`.
- Loading branch information
Showing
4 changed files
with
73 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters