Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Class notes 21CSC203P (APP)

Rating
-
Sold
-
Pages
40
Uploaded on
23-11-2025
Written in
2025/2026

This document contains the complete APP syllabus in clear, easy-to-understand notes. All units are explained in a structured format so you can study faster and score better. Included in this file: Full APP course coverage Unit-wise notes Important definitions & formulas Exam-focused explanations Short revision notes for quick study Clean and well-organized format Useful for assignments, tests, and semester exams These notes are perfect for students who want a complete, ready-to-study material without searching multiple sources. Simple language, neat presentation, and fully exam-oriented content. If you want to prepare the entire APP subject quickly and effectively, these notes are exactly what you need.

Show more Read less
Institution
Course

Content preview

UNIT IV

BY:
SHUBHANGI SHARMA
ASSISTANT PROFESSOR
DEPARTMENT OF CSE

,Functional Programming
 Functional programming is a programming
paradigm in which we try to bind everything in
pure mathematical functions style.
 It is a declarative type of programming style.
Its main focus is on “what to solve” in
contrast to an imperative style where the
main focus is “how to solve“.
 It uses expressions instead of statements. An
expression is evaluated to produce a value
whereas a statement is executed to assign
variables

,Pure Functions
Pure functions have two properties.
 It always produces the same output for the same arguments.
For example, 3+7 will always be 10 no matter what.
 It does not change or modifies the input variable.



The second property is also known as immutability. The only
result of the Pure Function is the value it returns. They are
deterministic. Programs done using functional programming
are easy to debug because pure functions have no side
effects or hidden I/O. Pure functions also make it easier to
write parallel/concurrent applications. When the code is
written in this style, a smart compiler can do many things – it
can parallelize the instructions, wait to evaluate results when
needing them, and memorize the results since the results
never change as long as the input doesn’t change.

, First-Class Functions/Higher-Order
Functions
 First-class objects are handled uniformly throughout.
They may be stored in data structures, passed as
arguments, or used in control structures. A
programming language is said to support first-class
functions if it treats functions as first-class objects.
 Properties of first class functions:
 A function is an instance of the Object type.
 You can store the function in a variable.
 You can pass the function as a parameter to another
function.
 You can return the function from a function.
 You can store them in data structures such as hash
tables, lists, …

Written for

Institution
Course

Document information

Uploaded on
November 23, 2025
Number of pages
40
Written in
2025/2026
Type
Class notes
Professor(s)
Harshit mehta sir
Contains
All classes

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
nitin8

Get to know the seller

Seller avatar
nitin8 SRM Institute of Science and Technology
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
5 months
Number of followers
0
Documents
8
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions