Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
Haskell
Edit
PageHistory
Diff
Info
LikePages
[Haskell | http://www.haskell.org] is a pure functional ProgrammingLanguage 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 — and so does [Haskell]! This allows you to do something similar to the pipe operator used in [Shell] scripting. !!! Example <verbatim> -- sieve: prints the number of prime numbers between 2 and 100000 sieve :: [Int] -> [Int] sieve [] = [] sieve (h:t) = h : sieve [x| x <- t, x `mod` h /= 0] main = (print . length . sieve) [2..100000] </verbatim> !!! Implementations [HUGS | http://haskell.org/hugs]:: __H__askell __U__sers' __G__ofer __S__ystem. An interpreter that's good for playing around learning [Haskell]. (“Gofer” was a subset of [Haskell], but HUGS now implements full [Haskell].) [GHC | http://www.haskell.org/ghc/]:: __G__lasglow __H__askell __C__ompiler. A big, optimising compiler for Haskell. ---- Part of CategoryProgrammingLanguages, CategoryFunctionalProgrammingLanguages
11 pages link to
Haskell
:
MarcelVanDeSteeg
Forth
Pugs
PolymorphicTypes
WaikatoCourseDescriptions
LambdaCalculus
HigherOrderFunctions
Interpreter
Erlang
LazyEvaluation
DARCS