Personal tools

List of partial functions

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Partial functions in other base libraries)
(List functions)
Line 22: Line 22:
 
* length
 
* length
 
* sum
 
* sum
  +
* product
 
* reverse
 
* reverse
 
* ... (todo)
 
* ... (todo)

Revision as of 11:26, 12 October 2012

Contents

1 Partial functions in Prelude

1.1 List functions

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

1.2 Maybe functions

  • fromJust

1.3 Other

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

2 Partial functions in other base libraries

2.1 Data.Map

  • (!)

3 Partial functions in other Haskell Platform packages

... (todo)