Closed gambiteer closed 6 months ago
And this should return foo
:
> (array->list*
(specialized-array-reshape ;; Reshape to a zero-dimensional array
(array-extract ;; Restrict to the first element
(make-specialized-array-from-data ;; The basic one-dimensional array
(vector 'foo 'bar 'baz))
(make-interval '#(1)))
(make-interval '#())))
ERROR in interval-lower-bound on line 80 of file /usr/local/chibi//share/chibi/srfi/231/base.scm: vector-ref: index out of range
#()
0
Handled the empty/zero cases, looks like I just never properly implemented the copy-on-failure
path.
The first is correct:
This should work:
This fails, too. It's probably just another place where empty arrays need be treated specially: