Hi, Panicz Maciej Godek <godek.mac...@gmail.com> skribis:
> So I thought that maybe there could be another keyword controlling whether > the keywords are left in the rest list or not, so the above code could > look like this: > > (define* (random-array #:key (range 1.0) (type #t) (mean 0) #:rest > dims #:no-key) > (array-map (lambda (mean) (+ mean (- (random (* 2 range)) range))) > (apply make-typed-array type mean dims))) > > Wouldn't the world be a better place? Perhaps, although that would make the ‘lambda*’ semantics yet more complex. However, in your example, what about using a list instead of a rest argument for ‘dims’? Thanks, Ludo’.