You are on page 1of 2

Department of Information Technology

Semester S.E. Semester III – INFT

Subject Computer programming Paradigms Lab

Laboratory Shruti Agrawal


Teacher:

Laboratory -

Student Name Audumbar Gutte

Roll Number 21101B0016

Grade and
Subject Teacher’s
Signature

Experimen 19
t Number

Problem Write the following Haskell program to implement Higher order functions: -
Statement 1. Using filter function find all the lower-case alphabet in any given
string.
2. Using Map function find the power of 4 for first 50 positive integers

Resources Hardware: Desktop/Laptop Software: Dev C++ / Code


/ Blocks, Haskell, SWI Prolog
Apparatus
Required

Code: 1. [c|c<-"Hii",c`elem`['a'..'z']]

2. map(^4)[1..50]

Output:

You might also like