-
Notifications
You must be signed in to change notification settings - Fork 63
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
Replace in
by ∈
#316
Comments
😄 i knew someone would ask for this at some point |
Note that as an operator |
Would something like this make sense #380 ? |
This looks fine. It's more general than necessary since the only three options are There's also a question of spacing. |
Either way it would add another option so at least |
Ok I've named this |
There's no way to include \in as part of variable name right?
|
No, |
Adds an option `for_in_replacement` which allows "in" to be replaced with another operator such as "∈" `\in` or "=" when `always_for_in` is enabled.
* possible solution to #316 * fix always_for_in options in the case of filter/flatten * Solve #316 Adds an option `for_in_replacement` which allows "in" to be replaced with another operator such as "∈" `\in` or "=" when `always_for_in` is enabled. * fmt * typo * make `valid_for_in_op` simpler * post-rebase fixups * fix a forgotten `end` * add validation for `for_in_replacement` * simplify if/else structure in `eq_to_in_normalization!` * get tests to pass - only transform binary op if it's a valid 'in' op * format * add warning log about for_in_replacement, and return the input text * spelling * tests * Docs Co-authored-by: Dominique Luna <dluna132@gmail.com> Co-authored-by: iblis17 <iblis.dif01@nctu.edu.tw>
It would be nice to replace
in
by∈
(typed\in
). Julia accepts this for the regular operators as well as infor
statements.The text was updated successfully, but these errors were encountered: