Difference between revisions of "Haskell"

From Conservapedia
Jump to navigation Jump to search
m (→‎External links: clean up)
m
Line 3: Line 3:
 
==Functions in Haskell==
 
==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.
+
Functions are the most important structure 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.
  
 
Functions in Haskell are also values in themselves, allowing Haskell to use [[higher-order functions]].
 
Functions in Haskell are also values in themselves, allowing Haskell to use [[higher-order functions]].

Revision as of 22:45, December 23, 2018

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 structure 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.

Functions in Haskell are also values in themselves, allowing Haskell to use higher-order functions.

Hello World

(display "hello world\n")

External links