We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mapCLR_
mapR_
See example below. For readability, list notation with center denoted by *s is used for a pivot.
*
mapR_ (List.take 1) [1,2,*3*,4,5] == [1,2,*3*,5]
mapCLR_ identity identity (List.take 1) [1,2,*3*,4,5] == [1,2,*3*,4]
Awkward implementation and lack of testing are to blame.
elm-pivot/Pivot/Map.elm
Lines 70 to 73 in cee1b98
Documentation makes matters worse, as it hints that these two applications above should have the same result.
elm-pivot/Pivot.elm
Lines 530 to 532 in cee1b98
As for fixing, the following works:
mapR_ = mapCLR_ identity identity
Still, it could be optimized, as mapCLR_ internally reverses the left side twice.
The text was updated successfully, but these errors were encountered:
fixes #11 with name changes to coerce major update
0a85919
Merge branch 'fix-map' into toastal-master
4f3dbbb
fixes #11
No branches or pull requests
See example below. For readability, list notation with center denoted by
*
s is used for a pivot.Awkward implementation and lack of testing are to blame.
elm-pivot/Pivot/Map.elm
Lines 70 to 73 in cee1b98
Documentation makes matters worse, as it hints that these two applications above should have the same result.
elm-pivot/Pivot.elm
Lines 530 to 532 in cee1b98
As for fixing, the following works:
Still, it could be optimized, as
mapCLR_
internally reverses the left side twice.The text was updated successfully, but these errors were encountered: