Difference between revisions of "List of partial functions"

From HaskellWiki
Jump to navigation Jump to search
(→‎Partial functions in other base libraries: genericIndex and genericLength are in Data.List but not the Prelude)
(→‎Partial functions in Prelude: removed some functions that aren't in the Prelude)
Line 18: Line 18:
 
* cycle
 
* cycle
 
* !!
 
* !!
* genericIndex
 
* genericLength
 
 
* length
 
* length
 
* sum
 
* sum
Line 25: Line 23:
 
* reverse
 
* reverse
 
* ... (todo)
 
* ... (todo)
 
===Maybe functions===
 
 
* fromJust
 
   
 
===Other===
 
===Other===

Revision as of 11:56, 12 October 2012

Partial functions in Prelude

List functions

  • maximum
  • minimum
  • head
  • tail
  • init
  • last
  • foldl
  • foldl'
  • foldl1
  • foldl1'
  • foldr1
  • scanl1
  • scanr1
  • cycle
  • !!
  • length
  • sum
  • product
  • reverse
  • ... (todo)

Other

  • read
  • quot
  • rem
  • quotRem
  • div
  • mod
  • divMod
  • succ
  • pred
  • toEnum
  • (^)
  • fail
  • ... (todo)

Partial functions in other base libraries

Data.List

  • genericIndex
  • genericLength

Data.Map

  • (!)

Data.Maybe

  • fromJust

Partial functions in other Haskell Platform packages

... (todo)