
11 May
2005
11 May
'05
11:02 a.m.
Hello Jerzy, Wednesday, May 11, 2005, 3:40:51 PM, you wrote: JK> I suppose that if somebody decides to use lambdas, he wants to do some JK> functional programming, no? well, i am use this all the way :) simplified example of one usage: (allocate, shrink) <- memoryAllocator buf size (buf,size) <- allocate 65536 ... shrink buf realsize another example: compress read_f write_f = do buf <- malloc 65536 let go = len <- read_f buf 65536 when (len>0) $ do ... write_f outbuf outlen go go and i find this feature very convenient -- Best regards, Bulat mailto:bulatz@HotPOP.com