-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Add implementation in `preprocess.rs` for `lists:partition/2`. The aim is to convert everything into expressions of the form ``` lists:partition(fun Pat when Guards -> true; Pat -> false end, L). ``` There are two conversions done: - A simple ID such as `lists:partition(fun is_atom/1, L)` is eta-expanded; - A lambda of the form `fun(Pat) -> Expr` is converted as above if `Expr` can be converted into a test. Reviewed By: ilya-klyuchnikov, RobinMorisset Differential Revision: D60763720 fbshipit-source-id: d2fe03255bff0ddc95d89b3ba5c572958544ae09
- Loading branch information
1 parent
16eef67
commit d86d6d7
Showing
5 changed files
with
365 additions
and
47 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
Oops, something went wrong.