-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor code in splitV for improved readability
I found the code in `splitV` hard to read, so this commit performs some mild refactoring to improve things somewhat: 1. There are multiple cases where `parts` can be either `Nat` or `Inf`, but the two `Nat` cases were far away from each other visually (and similarly for the two `Inf` cases). 2. The code was pattern-matching on `each` for no good reason, as every case treated `each` as a bare variable. I've removed this match. There is no change in behavior, just refactoring.
- Loading branch information
1 parent
1b94a6f
commit 49428ec
Showing
1 changed file
with
25 additions
and
22 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