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 0:23

>>3
ports read and write serialized data. A read only port can look like a function that is called and spits out objects. Every time it is called, it's state is changed, and it will will return different values. Unless caching is used, there it no way to save its prior state.

A writing port acts like a function that takes a single argument and doesn't return a value. It's a black hole. Values go into the function in some order, and nothing comes back out.

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