ncsa / qdl

the QDL programming language
Other
1 stars 0 forks source link

starts_with does not handle gaps in lists #1

Closed jjg-123 closed 1 year ago

jjg-123 commented 1 year ago

In 1.4.8.1. A sparse list as the first argument in starts_with causes an internal NPE because a range of elements is checked, not per key

   starts_with({0:'asd',1:'qwe',3:'zxc'},'as')
error

Should work as

    starts_with({0:'asd',1:'qwe',3:'zxc'},'as')
{0:0, 1:-1, 3:-1}