# List of partial functions

### From HaskellWiki

(Difference between revisions)

(→Partial functions in Prelude: Added new section for functions that aren't even partial) |
|||

(11 intermediate revisions by 3 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 14: | Line 19: | ||

* foldl1' |
* foldl1' |
||

* foldr1 |
* foldr1 |
||

+ | * scanl1 |
||

+ | * scanr1 |
||

* cycle |
* cycle |
||

* !! |
* !! |
||

− | * genericIndex |
||

* length |
* length |
||

* sum |
* sum |
||

+ | * product |
||

* reverse |
* reverse |
||

* ... (todo) |
* ... (todo) |
||

− | |||

− | ===Maybe functions=== |
||

− | |||

− | * fromJust |
||

===Other=== |
===Other=== |
||

Line 35: | Line 38: | ||

* mod |
* mod |
||

* divMod |
* 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=== |
===Data.Maybe=== |

## Latest revision as of 12:01, 12 October 2012

## Contents |

## [edit] 1 Partial functions in Prelude

### [edit] 1.1 Functions that aren't even partial

- error
- undefined

### [edit] 1.2 List functions

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

### [edit] 1.3 Other

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

## [edit] 2 Partial functions in other base libraries

### [edit] 2.1 Data.List

- genericIndex
- genericLength

### [edit] 2.2 Data.Map

- (!)

### [edit] 2.3 Data.Maybe

- fromJust

## [edit] 3 Partial functions in other Haskell Platform packages

... (todo)