Difference between revisions of "List of partial functions"

From HaskellWiki
Jump to navigation Jump to search
(New page: ==Partial functions in Prelude== ===List functions=== * maximum * minimum * ... (todo) ===Other=== * read * ... (todo) ==Partial functions in other base libraries== ... (todo) ==Par...)
 
(→‎Partial functions in Prelude: Added new section for functions that aren't even partial)
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
==Partial functions in Prelude==
 
==Partial functions in Prelude==
  +
  +
===Functions that aren't even partial===
  +
  +
* error
  +
* undefined
   
 
===List functions===
 
===List functions===
Line 5: Line 10:
 
* maximum
 
* maximum
 
* minimum
 
* minimum
  +
* head
  +
* tail
  +
* init
  +
* last
  +
* foldl
  +
* foldl'
  +
* foldl1
  +
* foldl1'
  +
* foldr1
  +
* scanl1
  +
* scanr1
  +
* cycle
  +
* !!
  +
* length
  +
* sum
  +
* product
  +
* reverse
 
* ... (todo)
 
* ... (todo)
   
Line 10: Line 32:
   
 
* read
 
* read
  +
* quot
  +
* rem
  +
* quotRem
  +
* div
  +
* mod
  +
* divMod
  +
* succ
  +
* pred
  +
* toEnum
  +
* (^)
  +
* fail
 
* ... (todo)
 
* ... (todo)
   
 
==Partial functions in other base libraries==
 
==Partial functions in other base libraries==
   
  +
===Data.List===
... (todo)
 
  +
  +
* genericIndex
  +
* genericLength
  +
  +
===Data.Map===
  +
  +
* (!)
  +
  +
===Data.Maybe===
  +
  +
* fromJust
   
 
==Partial functions in other Haskell Platform packages==
 
==Partial functions in other Haskell Platform packages==

Revision as of 12:01, 12 October 2012

Partial functions in Prelude

Functions that aren't even partial

  • error
  • undefined

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)