Docsity

Functional Programming Paradigm, Slides of Geography

Partial preview of the text

Download Functional Programming Paradigm and more Slides Geography in PDF only on Docsity!

SRM Institute of Science and Technology

School of Computing

Advanced Programming Practice-18CSC207J

(X1-X2)*(X1-X2)

Functional Programming Paradigm

Unit-III (15 Session) Session 11-15 cover the following topics:-

  • (^) Definition - S11-SLO
  • (^) Sequence of Commands โ€“ S11-SLO
  • (^) map(), reduce(), filter(), lambda โ€“ S12-SLO
  • (^) partial, functools โ€“ S12-SLO
  • (^) Other languages:F#, Clojure, Haskell โ€“ S13-SLO
  • (^) Demo: Functional Programming in Python - S13-SLO Lab 9: Functional Programming ( Case Study) (S14-15) Assignment : Comparative study of Functional programming in F #, Clojure, Haskell
  • (^) TextBook : Shalom, Elad. A Review of Programming Paradigms Throughout the History: With a Suggestion Toward a Future Approach, Kindle Edition

Concepts

  • (^) It views all subprograms as functions in the mathematical sense
  • (^) Take in arguments and return a single solution.
  • (^) Solution returned is based entirely on input, and the time at which a function is called has no relevance.
  • (^) The computational model is therefore one of function application and reduction.

Characteristics of Functional Programming

  • (^) Functional programming method focuses on results, not the

process

  • (^) Emphasis is on what is to be computed
  • (^) Data is immutable
  • (^) Functional programming Decompose the problem into

'functions

  • (^) It is built on the concept of mathematical functions which

uses conditional expressions and recursion to do perform the

calculation

  • (^) It does not support iteration like loop statements and

conditional statements like If-Else