Hello Jeff,


Wednesday, March 8, 2006, 8:08:57 PM, you wrote:


>

dropTrailNulls list = reverse (dropWhile null (reverse list)) 


dropTrailNulls [] = []

dropTrailNulls ([]:xs) = case dropTrailNulls xs of

                           [] -> []

                           list -> []:list

dropTrailNulls (x:xs) = x : dropTrailNulls xs


should work faster. but in most cases speed is just not critical and Haskell 

allows to implement such parts of program faster and easier (and easier to understand)


-- 

Best regards,

 Bulat                            mailto:Bulat.Ziganshin@gmail.com