<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#442200;">Here is a code snippet from lists module.<br><br>flatmap(F, [Hd|Tail]) -><br> F(Hd) ++ flatmap(F, Tail);<br>flatmap(F, []) when is_function(F, 1) -> [].<br><br>I was wondering if it is tail recursive? <br><br>-- baliga<br><br><br><div> </div>"The quality of programmers is a decreasing function of the density of GOTO statements in the programs they produce." - Edsger W. Dijkstra<br><br><span><a target="_blank" href="http://dudefrommangalore.blogspot.com/">http://dudefrommangalore.blogspot.com/</a></span><br><div><br></div></div></body></html>