vseloved / rutils

Radical Utilities for Common Lisp
Other
250 stars 37 forks source link

Make negative keys work as expected in generic-elt #48

Closed Kyo91 closed 4 years ago

Kyo91 commented 4 years ago

This PR allows for negative keys to work for integer-indexed key-value stores the same way that they work in Python (i.e. referencing positions from the tail). Example:

(should be = 42
      (? #(0 1 42) -1))

Fixes for issue #47

vseloved commented 4 years ago

Thanks a lot for the fix! And sorry for the delay in responding to it.