[Haskell-cafe] Python?
Bulat Ziganshin
bulatz at HotPOP.com
Wed May 11 11:02:34 EDT 2005
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 at HotPOP.com
More information about the Haskell-Cafe
mailing list