Hey Sungjin Chun! Sungjin Chun <[email protected]> writes: > In Common Lisp, I can make a stream on byte array and can write > values on them, in Scheme, I think the equivalent stuff is port and > I'd like to write values on byte array using port. > > Can anyone help me on finding documents or samples?
The things you may want are srfi-4 vectors: http://api.call-cc.org/doc/srfi-4 Usually one sets values with set! and vector-ref! or any of the setters: http://api.call-cc.org/doc/srfi-4#sec:Setters Maybe you can write up the desired behaviour in CL and we translate it to scheme? If you want to read from a port and put the stuff you read from it into a vector you might want to use read-u8vector or read-u8vector!. Kind regards, Christian -- May you be peaceful, may you live in safety, may you be free from suffering, and may you live with ease. _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
