Skip to content

Instantly share code, notes, and snippets.

@v2e4lisp
Created June 5, 2015 09:53
Show Gist options
  • Save v2e4lisp/9b8f3ad1439a94b303b4 to your computer and use it in GitHub Desktop.
Save v2e4lisp/9b8f3ad1439a94b303b4 to your computer and use it in GitHub Desktop.

date structure

list

functions

  • head
  • tail
  • init
  • last
  • length
  • num
  • reverse
  • take
  • drop
  • minimum
  • maximum
  • sum
  • product
  • elem
  • cycle
  • repeat
  • zip

feature

  • range
  • list comprehension

Tuple

  • fst (only for pairs)
  • snd (only for pairs)

type & type class

type

  • Int
  • Integer
  • Float
  • Double
  • Bool
  • Char

type class

  • Eq
  • Ord
  • Show
  • Read
  • Enum
  • Bounded
  • Num
  • Integral
  • Floating

functions

  • read
  • show
  • fromIntegral
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment