Changes between Version 33 and Version 34 of Folds


Ignore:
Timestamp:
Feb 28, 2017, 9:14:07 PM (5 years ago)
Author:
schiptsov
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Folds

    v33 v34  
     1= Folds =
     2
     3TODO:
     4{{{#!haskell
     5last     :: [a] -> a
     6last xs  =  foldl (\_ x -> x) lastError xs
     7-- a necessary cludge
     8lastError  :: a
     9lastError  =  errorEmptyList "last"
     10}}}
    111
    212== Foldr ==