Question: 2. Fill in the blanks below to write a function such that places x ys returns a list containing the indices of the occurrences of

 2. Fill in the blanks below to write a function such

2. Fill in the blanks below to write a function such that places x ys returns a list containing the indices of the occurrences of x in ys: places :: Eq a >a> [a] > [Integer] places x ys map (filter (zip ys [1..1)) For example, places ' "mississippi" should return 12,5,8,11) 2. Fill in the blanks below to write a function such that places x ys returns a list containing the indices of the occurrences of x in ys: places :: Eq a >a> [a] > [Integer] places x ys map (filter (zip ys [1..1)) For example, places ' "mississippi" should return 12,5,8,11)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!