The Wayback Machine - https://web.archive.org/web/20201206191727/https://github.com/antonmedv/fx/issues/119
Skip to content
New issue

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

Argument auto-splitting #119

Open
antonmedv opened this issue Dec 11, 2019 · 0 comments · May be fixed by #123
Open

Argument auto-splitting #119

antonmedv opened this issue Dec 11, 2019 · 0 comments · May be fixed by #123

Comments

@antonmedv
Copy link
Owner

@antonmedv antonmedv commented Dec 11, 2019

Currently, each argument to fx treated as an anonymous function. Here is an example:

fx 'groupBy("commit.author.name")' 'mapValues(size)' toPairs 'sortBy(1)' reverse 'take(10)' fromPairs

But this requires a lot of ' quotes. My idea is to split the argument by whitespaces . So next will be possible to write:

fx 'groupBy("commit.author.name") mapValues(size) toPairs sortBy(1) reverse take(10) fromPairs'

But of caouse, this is shuld be done properly. And next code shoukd work as expected:

fx '.map(x => x.foo) .bar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.