Re: A specifier for array dimensions in a followup to SRFI 231
Bradley Lucier 17 Apr 2026 00:55 UTC
On 4/14/26 14:59, Bradley Lucier wrote:
> I'd like to extend the array-* procedures that take intervals as
> arguments to additionally allow interval specifiers as arguments. I see
> these procedures as prospects:
>
> (make-array interval getter #\[ setter #\])
> (make-specialized-array interval #\[ storage-class #\[ initial-value #\] #\])
> (specialized-array-share array new-domain new-domain->old-domain)
> (array-extract array interval)
> (array-broadcast array new-domain)
> (list->array interval list #\[ storage-class #\[ mutable? #\] #\])
> (vector->array interval vector #\[ storage-class #\[ mutable? #\] #\])
> (specialized-array-reshape array interval #\[ copy-on-failure? #f #\])
This commit
https://github.com/gambiteer/srfi-231/commit/370143c400ae3482e56fa0e570931dbcac60aa49
makes these changes to SRFI 231-bis, with updated documentation and tests.
Brad