Tail recursion (87)

53 Name: #!/usr/bin/anonymous : 2006-03-11 03:34 ID:Heaven

>>46
You cannot write foldr with a simple imperative loop because lists in question are one-way and cannot be traversed in the reverse order. Similarly, the problems listed in >>48 cannot be solved efficiently with Haskell, not because Haskell forbids imperative loops, but because lists in Haskell are one-way and immutable.

This thread has been closed. You cannot post in this thread any longer.