Re: Random questions after a long haskell coding day

2002-01-26 Thread Hal Daume III
For your last question (about reduction to hnf), use the attached code; search the haskell mailing list for "deepseq" for more. -- Hal Daume III "Computer science is no more about computers| [EMAIL PROTECTED] than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume On Sun, 27

Random questions after a long haskell coding day

2002-01-26 Thread Jorge Adriano
Am I the only one who'd like to have some the function specified by > scan_and_fold f e xs= (scanl f e xs, foldl f e xs) In the Lists library. Or is it there somewhere and I missed it? What about: > pair (f,g) x = (f x, g x) > cross (f, g) = pair(f.fst, g.snd) I kind of like point free style.