chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] array-lib-hof - array-map! - not sure it's working


From: Terrence Brannon
Subject: [Chicken-users] array-lib-hof - array-map! - not sure it's working
Date: Sat, 8 Sep 2007 17:49:12 -0400

(require-extension array-lib)
(require-extension array-lib-hof)

(define (quikary shape)
  (let ([element-count (apply * shape)])
    (apply array shape (iota element-count))))

(define h (quikary '(2 3)))

; (array-map! h (lambda (z y x) "ho"))      doesnt throw an arity
error. doesnt change h
; (array-map! h (lambda (z) "ho"))           doesnt change contents of h
; (array-index-map! h (lambda (y x) "ho"))  changes contents of h




reply via email to

[Prev in Thread] Current Thread [Next in Thread]