List of partial functions

From HaskellWiki
Revision as of 11:53, 12 October 2012 by Dave4420 (talk | contribs) (→‎Partial functions in other base libraries: fromJust is in Data.Maybe but not Prelude)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Partial functions in Prelude

List functions

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

Maybe functions

  • fromJust

Other

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

Partial functions in other base libraries

Data.Map

  • (!)

Data.Maybe

  • fromJust

Partial functions in other Haskell Platform packages

... (todo)