ostap / comp

a tool for querying files in various formats
MIT License
43 stars 2 forks source link

accessing list elements by constant index #13

Closed julochrobak closed 11 years ago

julochrobak commented 11 years ago

allows to access list elements by a constant index. If the index is out of range it returns default value of an empty string. This not an ideal solution, but it is a bigger problem and could be resolved as part of the #7 issue which is suppose to support expressions to look up attributes.

ostap commented 11 years ago

This is a duplicate. Can you resubmit as #8?

ostap commented 11 years ago

Ok, it looks like it is not possible to submit the pull request as #8. I had a quick look at the code and noticed that there are no test cases, but have not run it yet.

julochrobak commented 11 years ago

ok, I'll add couple of basic tests and update the fork with the latest comp changes.