Support empty bracket implicit index syntax.#331
Conversation
Codecov Report
@@ Coverage Diff @@
## master #331 +/- ##
=========================================
Coverage ? 71.54%
Complexity ? 1580
=========================================
Files ? 239
Lines ? 4965
Branches ? 805
=========================================
Hits ? 3552
Misses ? 1126
Partials ? 287
Continue to review full report at Codecov.
|
|
👍 |
| } | ||
|
|
||
| Object start = property.eval(bindings, context); | ||
| Iterable<?> baseItr; |
There was a problem hiding this comment.
you could use a ternary here
There was a problem hiding this comment.
I need to have a better eye out for refactoring code that I come across.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #331 +/- ##
============================================
+ Coverage 71.51% 71.54% +0.02%
- Complexity 1576 1580 +4
============================================
Files 239 239
Lines 4957 4965 +8
Branches 800 805 +5
============================================
+ Hits 3545 3552 +7
Misses 1126 1126
- Partials 286 287 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
It was not possible previously do something like
list[3:]to get the sublist of all elements from index 3 to the end, as well aslist[:3], the sublist of all elements from index 0 up to index 3.