SlideShare uma empresa Scribd logo
1 de 9
Haskell: a simple intro

Ahmed Sherief Ahmed ELDakhakhny
    Twitter:@ahmd_sherief
    Facebook:goo.gl/9RKCH
• 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
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
• 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
Some important data structures
•   List
•   Dictionary --lookup
•   Trees (red-black , AVL)
•   Graphs
•   Mutables
•   Io
•   etc
Thank you

Twitter:@ahmd_sherief
Facebook:goo.gl/9RKCH

Mais conteúdo relacionado

Destaque

Ain-shams University,Urology department, ,Angiomyolipoma, by Mahmoud Reda
Ain-shams University,Urology department, ,Angiomyolipoma, by Mahmoud RedaAin-shams University,Urology department, ,Angiomyolipoma, by Mahmoud Reda
Ain-shams University,Urology department, ,Angiomyolipoma, by Mahmoud RedaMahmoud Reda badr
 
Robotic Surgery(minimally invasive surgery)
Robotic Surgery(minimally invasive surgery)Robotic Surgery(minimally invasive surgery)
Robotic Surgery(minimally invasive surgery)Sgtm Saha
 
P. Giulianotti - Robotics in General Surgery: State of Art and future perspec...
P. Giulianotti - Robotics in General Surgery: State of Art and future perspec...P. Giulianotti - Robotics in General Surgery: State of Art and future perspec...
P. Giulianotti - Robotics in General Surgery: State of Art and future perspec...ab medica
 
Laparoscopic kidney surg
Laparoscopic kidney surgLaparoscopic kidney surg
Laparoscopic kidney surgRushabh Shah
 
Acute kidney injury (aki)
Acute kidney injury (aki)Acute kidney injury (aki)
Acute kidney injury (aki)Iqbal Mahmud
 
Remote Ischaemic Conditioning and Critical Care
Remote Ischaemic Conditioning and Critical CareRemote Ischaemic Conditioning and Critical Care
Remote Ischaemic Conditioning and Critical CareSMACC Conference
 

Destaque (11)

Ain-shams University,Urology department, ,Angiomyolipoma, by Mahmoud Reda
Ain-shams University,Urology department, ,Angiomyolipoma, by Mahmoud RedaAin-shams University,Urology department, ,Angiomyolipoma, by Mahmoud Reda
Ain-shams University,Urology department, ,Angiomyolipoma, by Mahmoud Reda
 
Erus 2011 renal course
Erus 2011 renal courseErus 2011 renal course
Erus 2011 renal course
 
Robotic Surgery(minimally invasive surgery)
Robotic Surgery(minimally invasive surgery)Robotic Surgery(minimally invasive surgery)
Robotic Surgery(minimally invasive surgery)
 
Organ Transplant
Organ TransplantOrgan Transplant
Organ Transplant
 
P. Giulianotti - Robotics in General Surgery: State of Art and future perspec...
P. Giulianotti - Robotics in General Surgery: State of Art and future perspec...P. Giulianotti - Robotics in General Surgery: State of Art and future perspec...
P. Giulianotti - Robotics in General Surgery: State of Art and future perspec...
 
Laparoscopic kidney surg
Laparoscopic kidney surgLaparoscopic kidney surg
Laparoscopic kidney surg
 
Acute kidney injury (aki)
Acute kidney injury (aki)Acute kidney injury (aki)
Acute kidney injury (aki)
 
Ureteric
UretericUreteric
Ureteric
 
Remote Ischaemic Conditioning and Critical Care
Remote Ischaemic Conditioning and Critical CareRemote Ischaemic Conditioning and Critical Care
Remote Ischaemic Conditioning and Critical Care
 
Acute kidney injury
Acute kidney injuryAcute kidney injury
Acute kidney injury
 
Acute Kidney Injury
Acute Kidney InjuryAcute Kidney Injury
Acute Kidney Injury
 

Semelhante a Haskell a simple intro

Start You a Haskell (for Great Good)!
Start You a Haskell (for Great Good)!Start You a Haskell (for Great Good)!
Start You a Haskell (for Great Good)!Amar Shah
 
Лев Валкин — Программируем функционально
Лев Валкин — Программируем функциональноЛев Валкин — Программируем функционально
Лев Валкин — Программируем функциональноDaria Oreshkina
 
Diving into Functional Programming
Diving into Functional ProgrammingDiving into Functional Programming
Diving into Functional ProgrammingLev Walkin
 
Functional programming seminar (haskell)
Functional programming seminar (haskell)Functional programming seminar (haskell)
Functional programming seminar (haskell)Bikram Thapa
 
Introduction to Haskell: 2011-04-13
Introduction to Haskell: 2011-04-13Introduction to Haskell: 2011-04-13
Introduction to Haskell: 2011-04-13Jay Coskey
 
Lisp, An Introduction.ppt
Lisp, An Introduction.pptLisp, An Introduction.ppt
Lisp, An Introduction.pptLuis Soza
 
sete linguagens em sete semanas
sete linguagens em sete semanassete linguagens em sete semanas
sete linguagens em sete semanastdc-globalcode
 
Natural Language Processing Tools for the Digital Humanities
Natural Language Processing Tools for the Digital HumanitiesNatural Language Processing Tools for the Digital Humanities
Natural Language Processing Tools for the Digital HumanitiesXiang Li
 
Programming Languages - Functional Programming Paper
Programming Languages - Functional Programming PaperProgramming Languages - Functional Programming Paper
Programming Languages - Functional Programming PaperShreya Chakrabarti
 
A brief history of functional programming (edited)
A brief history of functional programming (edited)A brief history of functional programming (edited)
A brief history of functional programming (edited)Kieran Trezona-le Comte
 
Functional Programming #FTW
Functional Programming #FTWFunctional Programming #FTW
Functional Programming #FTWAdriano Bonat
 
PureScript Tutorial 1
PureScript Tutorial 1PureScript Tutorial 1
PureScript Tutorial 1Ray Shih
 
Scala final ppt vinay
Scala final ppt vinayScala final ppt vinay
Scala final ppt vinayViplav Jain
 

Semelhante a Haskell a simple intro (20)

Start You a Haskell (for Great Good)!
Start You a Haskell (for Great Good)!Start You a Haskell (for Great Good)!
Start You a Haskell (for Great Good)!
 
Лев Валкин — Программируем функционально
Лев Валкин — Программируем функциональноЛев Валкин — Программируем функционально
Лев Валкин — Программируем функционально
 
Diving into Functional Programming
Diving into Functional ProgrammingDiving into Functional Programming
Diving into Functional Programming
 
Functional programming seminar (haskell)
Functional programming seminar (haskell)Functional programming seminar (haskell)
Functional programming seminar (haskell)
 
Introduction to Haskell: 2011-04-13
Introduction to Haskell: 2011-04-13Introduction to Haskell: 2011-04-13
Introduction to Haskell: 2011-04-13
 
Intro to Perl
Intro to PerlIntro to Perl
Intro to Perl
 
Rustbridge
RustbridgeRustbridge
Rustbridge
 
PARADIGM IT.pptx
PARADIGM IT.pptxPARADIGM IT.pptx
PARADIGM IT.pptx
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
Lisp, An Introduction.ppt
Lisp, An Introduction.pptLisp, An Introduction.ppt
Lisp, An Introduction.ppt
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
sete linguagens em sete semanas
sete linguagens em sete semanassete linguagens em sete semanas
sete linguagens em sete semanas
 
Natural Language Processing Tools for the Digital Humanities
Natural Language Processing Tools for the Digital HumanitiesNatural Language Processing Tools for the Digital Humanities
Natural Language Processing Tools for the Digital Humanities
 
Programming Languages - Functional Programming Paper
Programming Languages - Functional Programming PaperProgramming Languages - Functional Programming Paper
Programming Languages - Functional Programming Paper
 
A brief history of functional programming (edited)
A brief history of functional programming (edited)A brief history of functional programming (edited)
A brief history of functional programming (edited)
 
Lisp
LispLisp
Lisp
 
Functional Programming #FTW
Functional Programming #FTWFunctional Programming #FTW
Functional Programming #FTW
 
PureScript Tutorial 1
PureScript Tutorial 1PureScript Tutorial 1
PureScript Tutorial 1
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
 
Scala final ppt vinay
Scala final ppt vinayScala final ppt vinay
Scala final ppt vinay
 

Haskell a simple intro

  • 1. Haskell: a simple intro Ahmed Sherief Ahmed ELDakhakhny Twitter:@ahmd_sherief Facebook:goo.gl/9RKCH
  • 2. • 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
  • 3. 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
  • 4. • 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
  • 5. Some important data structures • List • Dictionary --lookup • Trees (red-black , AVL) • Graphs • Mutables • Io • etc
  • 6.
  • 7.
  • 8.