Simplify slicing
feat: Remove edge cases
BREAKING CHANGE: progams relying on slicing MUST be revalidated
perf: impact
performance none
usability increase
maintainability increase
code: input
let array = [{1..10}]
let array2 = [{1...10}]
echo @array
echo @array2
expect: output
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
actual: output
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 10
reason: better usability and remove edge case
context: We should reuse the inclusive annotation for slicing to simplify working with the shell.
let array2 = [{1..=10}]