Hi,Reading on continuation I've came across this new style of creating the functions which I guess is not very clear in how it works---------------Prelude> let add_cps x y = \k -> k (x+y)Prelude> add_cps 3 4 $ print7---------------I have some questions as to1) what is the role of variable 'k' and what eventually happens to it.2) How does print work after the $ because there is clearly no parameter being passed to it.Thanks,Shishir Srivastava
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners