[Haskell-beginners] ghci timings

Doug McIlroy doug at cs.dartmouth.edu
Fri May 25 13:51:37 UTC 2018


 > Just use last to print the last in the list.

Because of lazy evaluation, this doesn't guarantee that the
earlier elements have been computed. You might use "sum" to
assure that they are. 

Doug


More information about the Beginners mailing list