Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Functional programming with ports

Name: Anonymous 2013-02-16 6:03

I was wondering whether there are any kewl libraries for Scheme that have map/fold/unfold-like procedures that work with ports.

Name: Anonymous 2013-02-17 3:10

>>4
Seems like an unfold-like procedure would work well for writing data to ports, a fold-like procedure for reading data from ports, and a map-like procedure for reading and writing data to ports.

There are common operations like reading from a port, char by char, performing some transformation on the char, then writing it to another port, that could easily be generalised with a map or for-each-like procedure.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List