Hi, I think I found the answer in that I should use (array-contents ...) as such: (import (rnrs io ports)) (put-bytevector (%make-void-port "w") (array-contents #2f64((1 2) (3 4)))) Cheers, Johan
2011/9/15 Ludovic Courtès <[email protected]>: > Hi, > > Johan Hidding <[email protected]> skribis: > >> It would be simplest if (put-bytevector ...) would >> accept an array as argument, but this gives a type-error > > It actually works with SRFI-4 vectors (info "(guile) SRFI-4 and > Bytevectors"): > > scheme@(guile-user)> (use-modules(rnrs io ports)) > scheme@(guile-user)> (put-bytevector (%make-void-port "w") #u8(1 2 3)) > > Does it help? > > Ludo’. > > >
