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
seq
Amber range echo 2..2 produces bash code: echo $(seq 2 1)
echo 2..2
echo $(seq 2 1)
For bash version 3.2.57(1)-release it produces output: 2 1. Bash in newer version doesn't have this issue.
3.2.57(1)-release
2 1
We should add some kind of check for range bounds to return no output, in order to standardise behaviour in all enviroments. Something like:
fun range(start: Num, end: Num): [Num] { let range = [Num] if end != start { range = trust $seq {start} {end}$ as [Num] } return range }
The text was updated successfully, but these errors were encountered:
i think a hotfix should be a compiler warning about this issue until we come up with a long term solution
Sorry, something went wrong.
No branches or pull requests
Amber range
echo 2..2
produces bash code:echo $(seq 2 1)
For bash version
3.2.57(1)-release
it produces output:2 1
. Bash in newer version doesn't have this issue.We should add some kind of check for range bounds to return no output, in order to standardise behaviour in all enviroments.
Something like:
The text was updated successfully, but these errors were encountered: