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 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
Get step-by-step solutions from verified subject matter experts
