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

Support for 'flip' #24

Open
sharkdp opened this issue Apr 8, 2018 · 2 comments
Open

Support for 'flip' #24

sharkdp opened this issue Apr 8, 2018 · 2 comments
Labels

Comments

@sharkdp
Copy link
Owner

sharkdp commented Apr 8, 2018

It would be great if we could apply flip to a function before we hand it over to a command. For example (suppose that % is a flip-operator):

> seq 3 | map %append "-"
-1
-2
-3

> seq 3 | filter %contains "12"
1
2
@sharkdp sharkdp added the feature label Apr 8, 2018
@CristianCantoro
Copy link
Contributor

It would be great if we could apply flip to a function before we hand it over to a command. For example (suppose that % is a flip-operator):

> seq 3 | map %append "-"
1-
2-
3-

With reference to the first example, if I just do seq | map append "-" - whitout flip - this is what I get:

> seq 3 | map append "-"
1-
2-
3-

I Imagine that the expect output when using flip would be:

> seq 3 | map %append "-"
-1
-2
-3

am I interpreting this in the right way?

@sharkdp
Copy link
Owner Author

sharkdp commented Nov 9, 2018

am I interpreting this in the right way?

Absolutely, thanks. I have adapted my description above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants