-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initially, this was solely a large-scale exercise in replacing all occurrences of `List.flatten` with `List.concat` (`concat` is an alias of `flatten` and is more consistent with the naming of `concat_map`). In the end, I made a small effort to attempt to replace occurrences of the pattern `concat (map f xs)` with `concat_map f xs`. There are probably a few places that I've missed. --- I'm keen on: - Squashing all of this - Adding the squashed commit's hash to `.git-blame-ignore-revs` (there is a lot of whitespace churn due to the general code style of writing lots of anonymous function) - Finding missed occurrences using structural grepping - Adding a rule to quality gate that disallows `List.flatten` --- In future, we should define a bunch of list-related optimisations (fusing, reordering, etc.) and try to replace those as well.
- Loading branch information
Showing
67 changed files
with
799 additions
and
961 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
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.