HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 199713 thumbnail
User 410289 avatar

By CodeJustin
via reperiendi.wordpress.com
Published: Jul 07 2009 / 05:41

In many languages you have type constructors; given a type A and a type constructor Lift, you get a new type Lift>. A functor is a type constructor together with a function lift: (A -> B) -> (Lift> -> Lift>) that preserves composition and identities. If h is the composition of two other functions g and f h (a) = g (f (a)), then lift (h) is the composition of lift (g) and lift (f) lift (h) (la) = lift (g) (lift (f) (la)). Similarly, if h is the identity function on variables of type A h (a: A) = a, then lift (h) will be the identity on variables of type Lift> lift (h) (la : Lift>) = la.
  • 10
  • 0
  • 1092
  • 0

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (0)