Hello everyone,
You may have seen my message about how I'm writing a binding to a C
library. This is another question related to that.
So, let's say I have a linked list implemented in C. Here's what its
definition looks like:
struct __linked_list {
void *data;
struct __linked_list
On May 16, 2007, at 12:23 , Rob Hoelz wrote:
And as long as I'm asking, is there some kind of monadic function
composition operator? I'd like to clean up the above with something
like peekCString . peek . linked_list_getdata...
(=)?
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell]
Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote:
On May 16, 2007, at 12:23 , Rob Hoelz wrote:
And as long as I'm asking, is there some kind of monadic function
composition operator? I'd like to clean up the above with something
like peekCString . peek . linked_list_getdata...
(=)?
Rob Hoelz wrote:
item - linked_list_getdata listPtr
next - linked_list_next listPtr
cStr - peek item
hStr - peekCString cStr
t - linkedListToStringList next
return (hStr : t)
item - linked_list_getdata listPtr
next -