Difference between revisions of "Haskell"
Jump to navigation
Jump to search
(Added a section on functions, also Haskell (unlike Lisp) is category theory based rather than lambda calculus based.) |
|||
| Line 1: | Line 1: | ||
| − | '''Haskell''' is a pure [[functional programming languages|functional programming language]] with roots in | + | '''Haskell''' is a pure [[functional programming languages|functional programming language]] with roots in [[category theory]]. Free and [[open source]] implementations are available for a variety of operating systems. |
| + | |||
| + | ==Functions in Haskell== | ||
| + | |||
| + | Functions are the most important idea in Haskell. A function takes a single value as input and returns a single value as output. Clearly it is often desirable to take in more than one argument or give out more than one. This can be done using [[tuples]] or [[lists]] but there is a very mathematically elegant and useful method called [[currying]], named for the logician Haskell Curry. | ||
== Hello World == | == Hello World == | ||
Revision as of 04:20, September 20, 2011
Haskell is a pure functional programming language with roots in category theory. Free and open source implementations are available for a variety of operating systems.
Functions in Haskell
Functions are the most important idea in Haskell. A function takes a single value as input and returns a single value as output. Clearly it is often desirable to take in more than one argument or give out more than one. This can be done using tuples or lists but there is a very mathematically elegant and useful method called currying, named for the logician Haskell Curry.
Hello World
(display "hello world\n")