Penguin
Note: You are viewing an old revision of this page. View the current version.

Haskell is pure FunctionalProgramming? language that employs LazyEvaluation and supports generic or PolymorphicTypes.

It has some cool concepts like the dot operator. If you remember your calculus, it used the . for functional composition: so does Haskell! This allows you to do something similar to the pipe operator used in shell scripting.

Example

-- sieve: prints the number of prime numbers between 2 and 100000

sieve :: [Int? -> [Int? sieve [? = [? sieve (h:t) = h : sieve [x?

main = (putStrLn . show . length . sieve) [2..100000?

Implementations

[HUGS | http
//haskell.org/hugs] : Haskell Users' Gofer1? System. An interpreter that's good for playing around learning Haskell (which is what you do with Haskell, unless you're serious computer scientist).
[GHC | http
//www.haskell.org/ghc/] : Glasglow Haskell Compiler. A big, optimising compiler for Haskell.

1? Gofer was a subset of Haskell, HUGS now implements full Haskell.


CategoryProgrammingLanguages, CategoryFunctionalProgrammingLanguages

lib/main.php:944: Notice: PageInfo: Cannot find action page

lib/main.php:839: Notice: PageInfo: Unknown action