Personal tools

List of partial functions

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(List functions)
Current revision (12:01, 12 October 2012) (edit) (undo)
(Partial functions in Prelude: Added new section for functions that aren't even partial)
 
(19 intermediate revisions 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 9: Line 14:
* init
* init
* last
* last
 +
* foldl
 +
* foldl'
 +
* foldl1
 +
* foldl1'
 +
* foldr1
 +
* scanl1
 +
* scanr1
 +
* cycle
 +
* !!
 +
* length
 +
* sum
 +
* product
 +
* reverse
* ... (todo)
* ... (todo)
Line 14: 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==
-
... (todo)
+
===Data.List===
 +
 
 +
* genericIndex
 +
* genericLength
 +
 
 +
===Data.Map===
 +
 
 +
* (!)
 +
 
 +
===Data.Maybe===
 +
 
 +
* fromJust
==Partial functions in other Haskell Platform packages==
==Partial functions in other Haskell Platform packages==
... (todo)
... (todo)

Current revision

Contents

1 Partial functions in Prelude

1.1 Functions that aren't even partial

  • error
  • undefined

1.2 List functions

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

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.List

  • genericIndex
  • genericLength

2.2 Data.Map

  • (!)

2.3 Data.Maybe

  • fromJust

3 Partial functions in other Haskell Platform packages

... (todo)