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
Swap can be written as:
> printf "1\t2" | hsl swap
or equivalently
> printf "1\t2" | hsl '\(x,y) -> (y,x)'
With implicit arguments, we should be allowed to write it as:
> printf "1\t2" | hsl '(_2, _1)'
I think it would also be useful to support _0 for the entire argument, for those cases where pointfree style is inconvenient:
_0
> seq 10 | hsl 'take 2 _0 ++ drop (length _0 - 2) _0' 1 2 9 10
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Swap can be written as:
or equivalently
With implicit arguments, we should be allowed to write it as:
I think it would also be useful to support
_0
for the entire argument, for those cases where pointfree style is inconvenient:The text was updated successfully, but these errors were encountered: