haskell a simple intro

9

Click here to load reader

Upload: ahmed-sherief

Post on 12-May-2015

306 views

Category:

Documents


6 download

DESCRIPTION

these slides are about haskell the functional programming language hope u enjoy them

TRANSCRIPT

Page 1: Haskell a simple intro

Haskell: a simple intro

Ahmed Sherief Ahmed ELDakhakhnyTwitter:@ahmd_sheriefFacebook:goo.gl/9RKCH

Page 2: Haskell a simple intro

• Haskell is functional programming language• Haskell is lazy. Haskell won't execute functions

and calculate things until it's really forced to show you a result.

• Haskell allow infinite data structures• Haskell can build recursive procedures

Page 3: Haskell a simple intro

Haskell is statically typed

• The type of every expression is known at compile time-and has type interface if u say a=5+8 then a is a number other example num sum(num1 ,num2) if you passed a string as num1 and a number as num2 it will deal with the string as a number

Page 4: Haskell a simple intro

• Haskell is elegant and concise.• Haskell programs are usually shorter than

their imperative equivalents. And shorter programs are easier to maintain than longer ones and have less bugs

• To program in Haskell you will need – text editor– A Haskell compiler(GHC is the most widely used

Haskell

Page 5: Haskell a simple intro

Some important data structures

• List• Dictionary --lookup • Trees (red-black , AVL)• Graphs• Mutables• Io• etc

Page 6: Haskell a simple intro
Page 7: Haskell a simple intro
Page 8: Haskell a simple intro
Page 9: Haskell a simple intro

Thank you

Twitter:@ahmd_sheriefFacebook:goo.gl/9RKCH