Could you please help me on using some prelude functions to get the desired result by joining groupBy, uniquBy or any other functions. I can do it by using for loops, but want t