Comments (1)
There's some history to this decision, see 31d0fc1 and https://groups.google.com/forum/#!topic/elm-dev/gdh55ZOi1Fs.
I think it is worth pointing out that there is no argument order that will satisfy everyone's needs. While you listed several examples in your issue that would be cleaner if the order of the arguments was flipped, there are also plenty of examples where flipping the argument order would degrade code quality. The decision over argument order ultimately comes down to which cases come up more frequently in practice, conventions as defined by similar existing functions, the cost of switching for existing code, etc.
from list-extra.
Related Issues (20)
- Next release HOT 1
- Proposal for more context in `groupWhile` HOT 3
- MIT LICENSE file does not match "BSD-3-Clause" in elm.json HOT 1
- Proposal for `combinations` HOT 2
- proposal: Add findMap HOT 2
- isInfixOf returns incorrect result when a partial match is found before a complete match HOT 2
- groupByWhile seems unintuitive HOT 2
- Proposal for `windows` function(s) HOT 5
- code design thought HOT 1
- `groupWhen` and `groupWhenWithAcc` proposal/design question HOT 1
- Cycle 0 list = [] ? HOT 1
- Tail call optimiziations
- `groupsOfVarying` behaves inconsistently with groups of length `0`
- I downloaded the source code for elm-community/list-extra But it looks like the hash of the archive has changed since publication HOT 3
- groupsOf and friends can exceed maximum call stack size HOT 1
- Add a pad functions HOT 1
- Proposal for `toMaybeList` function HOT 2
- `unconsLast`
- Proposal: `(a -> Result x b) -> List a -> Result (List x) (List b)` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from list-extra.