This is the mail archive of the guile@cygnus.com mailing list for the guile project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Mikael Djurfeldt writes: > Array support is implemented in C in Guile. `array-map!' exists but > is named `array-map'. I've now added the name `array-map!' to the > distribution. Meanwhile, you can add a line defining this name to > jacal.scm (see below). In my opinion, the name ARRAY-MAP should be reserved for a non-destructive array mapping function. One possibility: (define (array-map prot fun ra1 . ras) (let ((ra0 (apply make-uniform-array prot (array-dimensions ra1)))) (apply array-map! ra0 fun ra1 ras) ra0))